下面就是控制台报的错误:
[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

解决方案 »

  1.   

    1. jsp-api:jar 是否重复导入了?
    2. 贴 pom.xml
      

  2.   

    很明显是网络不好 downloading了一半没下完  你把maven命令多执行几遍  总会成功的
      

  3.   

    不是吧,公司网有限制,我都用手机热点了,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,还有什么方法可以
      

  4.   

    删了再去download
      

  5.   

    我觉得是下载jar出现的问题吧 ,可能是网路问题导致下载架包失败,他会自动在本地仓库保存一个已jar包名字为名字然后后缀是.lastUpdate的文件.如果出现这样的文件你这个jar是不可能下载下来的,只有删除掉,重新update一下