maven deploy的时候发生异常

fudannn 2013-05-08 10:25:04
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
...全文
235 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lvzg_005 2013-05-08
  • 打赏
  • 举报
回复
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 首先确认本地仓库是否有这个构件 如果本地仓库不存在,说明插件maven-deploy-plugin依赖的这个构件不能够从远程仓库下载下来,确认下自己的setting配置下载的远程仓库配的是哪个,可能配置的远程仓库中没有这个构件,需要重新添加远程仓库
fudannn 2013-05-08
  • 打赏
  • 举报
回复
没有找到org.codehaus.plexus:plexus-utils:jar:1.5.6 没有找到这个jar,自己添加到仓库里面去就好了…………

50,528

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧