maven deploy的时候发生异常
user-parent配置:
<distributionManagement>
<repository>
<id>user-releases</id>
<name>User Project RELEASE</name>
<url>http://localhost:8081/nexus/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>user-snapshots</id>
<name>User Project SNAPSHOTS</name>
<url>http://localhost:8081/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
setting文件中:
<servers>
<server>
<id>user-snapshots</id>
<username>deployment</username>
<password>deployment123</password>
</server>
<server>
<id>user-releases</id>
<username>deployment</username>
<password>deployment123</password>
</server>
</servers>
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building user-log 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ user-log ---
[INFO] Deleting C:\Users\lenovo\Desktop\maven\user-log\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ user-log ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\lenovo\Desktop\maven\user-log\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ user-log ---
[INFO] Compiling 1 source file to C:\Users\lenovo\Desktop\maven\user-log\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ user-log ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\lenovo\Desktop\maven\user-log\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ user-log ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ user-log ---
[INFO] No tests to run.
[INFO] Surefire report directory: C:\Users\lenovo\Desktop\maven\user-log\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ user-log ---
[INFO] Building jar: C:\Users\lenovo\Desktop\maven\user-log\target\user-log-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ user-log ---
[INFO] Installing C:\Users\lenovo\Desktop\maven\user-log\target\user-log-0.0.1-SNAPSHOT.jar to C:\study(C)\MyTest\maven\repository\cn\fudan\user\user-log\0.0.1-SNAPSHOT\user-log-0.0.1-SNAPSHOT.jar
[INFO] Installing C:\Users\lenovo\Desktop\maven\user-log\pom.xml to C:\study(C)\MyTest\maven\repository\cn\fudan\user\user-log\0.0.1-SNAPSHOT\user-log-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ user-log ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.923s
[INFO] Finished at: Wed May 08 10:20:41 CST 2013
[INFO] Final Memory: 12M/63M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project user-log: Execution default-deploy of goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy failed: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.7 or one of its dependencies could not be resolved: Failure to find org.codehaus.plexus:plexus-utils:jar:1.5.6 in http://localhost:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException