The mvn Jetty plugin code has been added to my pom.xml project.
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.26</version> <configuration> <contextPath>/redkites</contextPath> </configuration> <executions> <execution> <id>start-jetty</id> <phase>deploy</phase> <goals> <goal>run</goal> </goals> <configuration> <scanIntervalSeconds>10</scanIntervalSeconds> <daemon>true</daemon> </configuration> </execution> </executions> </plugin>
When I use the sudo mvn compile and sudo mvn clean install commands, I did not find errors and did not work successfully, but when I type the sudo mvn jetty:run command, I get an error message:
[ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), central (http:
Please suggest a way to solve it. Thanks you
maven jetty maven-jetty-plugin
Prakhash Jan 02 '15 at 5:50 2015-01-02 05:50
source share