在maven進行jetty的調試中出現錯誤:java
-
[ERROR] No plugin found
for prefix 'jetty' in the current project and in the plu
-
gin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repo
-
sitories [
local (C:\Documents and Settings\Administrator\.m2\repository), centra
-
-
-
[ERROR]
To see the full stack trace of the errors, re-run Maven with the -e swit
詳情以下:web
-
C:\myjava\workspace>mvn jetty:run
-
[INFO] Scanning
for projects...
-
[WARNING] Failed
to retrieve plugin descriptor for org.apache.maven.plugins:mave
-
n-deploy-plugin:
2.7: Failed to parse plugin descriptor for org.apache.maven.plug
-
ins:maven-deploy-plugin:
2.7 (C:\Documents and Settings\Administrator\.m2\reposit
-
ory\org\apache\maven\plugins\maven-deploy-plugin\
2.7\maven-deploy-plugin-2.7.jar
-
): invalid LOC header (bad signature)
-
[WARNING] Failed
to retrieve plugin descriptor for org.apache.maven.plugins:mave
-
n-site-plugin:
3.0: Failed to parse plugin descriptor for org.apache.maven.plugin
-
s:maven-site-plugin:
3.0 (C:\Documents and Settings\Administrator\.m2\repository\
-
org\apache\maven\plugins\maven-site-plugin\
3.0\maven-site-plugin-3.0.jar): inval
-
id LOC header (bad signature)
-
-
-
-
-
-
etadata.xml (
11 KB at 10.7 KB/sec)
-
-
.xml (
22 KB at 18.2 KB/sec)
-
[INFO] ------------------------------------------------------------------------
-
-
[INFO] ------------------------------------------------------------------------
-
[INFO] Total time:
2.110s
-
[INFO] Finished at: Sun Mar
03 17:31:20 CST 2013
-
[INFO] Final Memory:
4M/15M
-
[INFO] ------------------------------------------------------------------------
-
[ERROR] No plugin found
for prefix 'jetty' in the current project and in the plu
-
gin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repo
-
sitories [
local (C:\Documents and Settings\Administrator\.m2\repository), centra
-
-
-
[ERROR]
To see the full stack trace of the errors, re-run Maven with the -e swit
settings.xml沒有配置插件應此須要sql
mvn org.mortbay.jetty:maven-jetty-plugin:run
這樣來運行。
若是須要使用jetty:run,那麼必須在maven的setting.xml下配置apache
-
-
<pluginGroup>org.mortbay.jetty</pluginGroup>
-
或者在對應項目的pom.xml中plugins的節點下添加配置app
-
-
<groupId>org.mortbay.jetty</groupId>
-
<artifactId>jetty-maven-plugin</artifactId>
-
-
-
<contextPath>/</contextPath>
-
-
-
<stopPort>9999</stopPort>
-
-
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
-
-
<maxIdleTime>60000</maxIdleTime>
-
-
-
<requestLog implementation="org.eclipse.jetty.server.NCSARequestLog">
-
<filename>target/access.log</filename>
-
<retainDays>90</retainDays>
-
-
<extended>false</extended>
-
<logTimeZone>GMT+8:00</logTimeZone>
-
-
-
-
<name>productionMode</name>
-
<value>${productionMode}</value>
-
-
-
-