关于maven搭建的项目

木棉未眠 2015-08-31 02:32:07
下面就是控制台报的错误:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for commbankmgmt:commbankmgmt:war:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.servlet:servlet-api:jar -> version 2.4 vs 2.5 @ commbankmgmt:parent:0.0.1-SNAPSHOT, D:\workspace\jsbankmgmt\parent\pom.xml, line 596, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.servlet.jsp:jsp-api:jar -> version 2.0 vs 2.1 @ commbankmgmt:parent:0.0.1-SNAPSHOT, D:\workspace\jsbankmgmt\parent\pom.xml, line 607, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 20, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building commbankmgmt 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://repo.maven.apache.org/maven2/net/sf/ehcache/ehcache-terracotta-root/2.3.0/ehcache-terracotta-root-2.3.0.pom
[INFO] Downloading: http://repository.jboss.com/maven2/net/sf/ehcache/ehcache-terracotta-root/2.3.0/ehcache-terracotta-root-2.3.0.pom
[WARNING] The POM for captcha:captcha:jar:1.2.1 is missing, no dependency information available
[WARNING] The POM for qrcode:qrcode:jar:1.0 is missing, no dependency information available
[WARNING] The POM for qrDEcode:qrDEcode:jar:1.0 is missing, no dependency information available
[WARNING] The POM for fastjson:fastjson:jar:1.1.9 is missing, no dependency information available
[WARNING] The POM for com.ckfinder:CKFinder:jar:2.4.2 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.030 s
[INFO] Finished at: 2015-08-31T14:25:47+08:00
[INFO] Final Memory: 15M/174M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project commbankmgmt: Could not resolve dependencies for project commbankmgmt:commbankmgmt:war:0.0.1-SNAPSHOT: Failed to collect dependencies at net.sf.ehcache:ehcache-jgroupsreplication:jar:1.3 -> net.sf.ehcache:ehcache:jar:2.3.0 -> net.sf.ehcache:ehcache-terracotta:jar:2.3.0: Failed to read artifact descriptor for net.sf.ehcache:ehcache-terracotta:jar:2.3.0: Could not find artifact net.sf.ehcache:ehcache-terracotta-root:pom:2.3.0 in central (http://repo.maven.apache.org/maven2) -> [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/DependencyResolutionException
...全文
1717 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
我觉得是下载jar出现的问题吧 ,可能是网路问题导致下载架包失败,他会自动在本地仓库保存一个已jar包名字为名字然后后缀是.lastUpdate的文件.如果出现这样的文件你这个jar是不可能下载下来的,只有删除掉,重新update一下
baidu_36777473 2017-01-10
  • 打赏
  • 举报
回复
引用 2 楼 wlwlwlwl015 的回复:
很明显是网络不好 downloading了一半没下完 你把maven命令多执行几遍 总会成功的
不是吧,公司网有限制,我都用手机热点了,down了很多次都是类似的
[WARNING] Some problems were encountered while building the effective model for com.ibeetl:bbs:war:1.0.1
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: commons-codec:commons-codec:jar -> duplicate declaration of version 1.10 @ line 95, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
除了多download,还有什么方法可以
那年花 2017-01-10
  • 打赏
  • 举报
回复
删了再去download
sinat_18419469 2015-09-01
  • 打赏
  • 举报
回复
楼上正解。。
小灯光环 2015-09-01
  • 打赏
  • 举报
回复
很明显是网络不好 downloading了一半没下完 你把maven命令多执行几遍 总会成功的
Defonds 2015-09-01
  • 打赏
  • 举报
回复
1. jsp-api:jar 是否重复导入了? 2. 贴 pom.xml

81,094

社区成员

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

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