No plugin found for prefix 'jetty' in the current project and in the plugin groups (local, central)
You are using the Plugin version 9.4.0-SNAPSHOT
. This version is not available in the central repo (available versions).
To add a dependency
doesn't solve the problem because a dependency is not the same as a plugin
. A dependency is used or required by the code you want to compile and a plugin is something that would compile, build or analyze your code.
In short:
- you don't need a
dependency
onjetty-maven-plugin
you have to change the
version
of theplugin
to a version which is available in the central or your local repo.
For example:<plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.4.0.M0</version> </plugin>
Please edit the settings.xml file in the local repository with the following information
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>${user.home}/.m2/repository</localRepository>
<interactiveMode>true</interactiveMode>
<usePluginRegistry>false</usePluginRegistry>
<offline>false</offline>
<pluginGroups>
<pluginGroup>org.mortbay.jetty</pluginGroup>
</pluginGroups>
</settings>
It's working for me.