maven install 时报错

血饮 2014-07-07 09:12:15
WARNING] Missing POM for org.apache.maven.surefire:surefire-junit3:jar:2.16
[INFO] Downloading: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/surefire/surefire-junit3/2.16/surefire-junit3-2.16.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] smartrouter ........................................ SUCCESS [ 15.674 s]
[INFO] A Smart Log Control Bundle ......................... FAILURE [ 23.133 s]
[INFO] JNI Manage Bundle .................................. SKIPPED
[INFO] Gateway Manage Bundle .............................. SKIPPED
[INFO] commonUtil Bundle .................................. SKIPPED
[INFO] Bundel Manage Center ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40.602 s
[INFO] Finished at: 2014-07-07T21:02:56+08:00
[INFO] Final Memory: 12M/29M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project com.gj.s304.smartlog: Unable to generate classpath: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
[ERROR] ----------
[ERROR] 1) org.apache.maven.surefire:surefire-junit3:jar:2.16
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.apache.maven.surefire -DartifactId=surefire-junit3 -Dversion=2.16 -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.apache.maven.surefire -DartifactId=surefire-junit3 -Dversion=2.16 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR] Path to dependency:
[ERROR] 1) dummy:dummy:jar:1.0
[ERROR] 2) org.apache.maven.surefire:surefire-junit3:jar:2.16
[ERROR]
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR]
[ERROR] for artifact:
[ERROR] dummy:dummy:jar:1.0
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] ibiblio.org (http://mirrors.ibiblio.org/pub/mirrors/maven2, releases=true, snapshots=false)
[ERROR] -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :com.gj.s304.smartlog



请大家帮忙给看一下
...全文
332 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
guojingyinan219 2016-08-17
  • 打赏
  • 举报
回复
你好,我遇到同样的问题,给个建议啊
血饮 2014-07-21
  • 打赏
  • 举报
回复
引用 1 楼 u012412259 的回复:
没有导入包吧
找到原因了,公司装的破加密软件,有些进程没有抓到,导致那个jar找不到,蛋疼了好久呀!
猿哥 2014-07-07
  • 打赏
  • 举报
回复
没有导入包吧

62,615

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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