下面就是控制台报的错误:
[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
[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
解决方案 »
- hibernate中配置了多个sessionFactory,怎么调用
- 使用struts2,为什么地址栏链接无论多少个namespace都能访问到action??
- Java过滤器判断Session
- 怎樣清除原來的cookie?
- java能做出什么样的报表,高手请进。
- 请问这个JAVABean是不是用到连接池?
- 如何在服务器上建立文件
- 无法使用jsp调用javabean(tomcat)
- 为什么我的JSP文件,在IE里面浏览的时候老是代码被截断?
- 请解释一下jsp中标签<ora:encodeURL url="xxx.jsp">是什么意思?
- 第一次在STS新建一一个spring MVC 项目 运行出现cannot star Application
- spring定时任务每月最后一天 corn表达式使用L 报错 请教!!
2. 贴 pom.xml
[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,还有什么方法可以