[INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'jetty'. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.mortbay.jetty:maven-jetty-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Tue May 05 15:32:05 CST 2009 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
Solutions:
One, on-line approach is to find the% MAVEN_HOME% / conf / settings.xml, modify the relevant agent node, as follows:
<proxies>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
| -->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
<nonProxyHosts>local.net,some.host.com</nonProxyHosts>
</proxy>
</proxies> Second, my approach.
Modify pom.xml, find plunin part of the jetty (Note <verson> tag):
...
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.0.0</version>
</plugin>
... Find% M2_HOME% / repository / org / mortbay / jetty / jetty ..., there is a version of the jetty, with a random (eg 6.0.0) in <verson> on. And so it goes, you can start the jetty.
Finally, give us a whole configuration of the jetty:
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.0.0</version>
<configuration>
<contextPath>/</contextPath>
<scanIntervalSeconds>3</scanIntervalSeconds>
<scanTargets>
<scanTarget>src/main/resources/struts.xml</scanTarget>
</scanTargets>
</configuration>
</plugin> Another, Maven-Jetty-plugin relevant Download: .
However, the proposed integrated into Eclipse, or run the command mvn.
Deployment, then click on the establishment of months. Bat.
Single line of code:
mvn package-Dmaven.test.skip = true-o-e - do not directly build a test
mvn test-Dmaven.test.failure.ignore = true-o-e - but neglected to build error
Each on the Ok.







