jboss-seam-2.3.0.Final example/todo 用maven首次部署时的一个错误解决方法

来源:互联网 发布:淘宝手机软件 编辑:程序博客网 时间:2024/05/22 14:08

一、jboss-seam-2.3.0.Final examples/todo

用maven首次部署时的出现以下错误:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Todo Example
[INFO] Todo EJB Module
[INFO] Todo Web Module
[INFO] Todo EAR Module
[INFO] Todo Integration Tests Module
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Todo Example 2.3.0.Final
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ todo ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ todo ---
[INFO] Installing /home/zheng/todo/pom.xml to /home/zheng/.m2/repository/org/jboss/seam/examples/todo/2.3.0.Final/todo-2.3.0.Final.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Todo EJB Module 2.3.0.Final
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.jbpm.jbpm3:jbpm-jpdl:jar:3.2.10.SP3_seam2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ todo-ejb ---
[INFO] Deleting /home/zheng/todo/todo-ejb/target
[INFO] 
[INFO] --- build-helper-maven-plugin:1.7:add-resource (add-resource) @ todo-ejb ---
[WARNING] The POM for junit:junit:jar:3.8.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM fo
r org.apache.maven:maven-plugin-api:jar:2.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ todo-ejb ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ todo-ejb ---
[INFO] Compiling 2 source files to /home/zheng/todo/todo-ejb/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] error: error reading /home/zheng/.m2/repository/org/jbpm/jbpm3/jbpm-jpdl/3.2.10.SP3_seam2/jbpm-jpdl-3.2.10.SP3_seam2.jar; error in opening zip file
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Todo Example ...................................... SUCCESS [0.924s]
[INFO] Todo EJB Module ................................... FAILURE [2.429s]
[INFO] Todo Web Module ................................... SKIPPED
[INFO] Todo EAR Module ................................... SKIPPED
[INFO] Todo Integration Tests Module ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.932s
[INFO] Finished at: Sun Oct 13 07:28:18 CST 2013
[INFO] Final Memory: 10M/108M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project todo-ejb: Compilation failure
[ERROR] error: error reading /home/zheng/.m2/repository/org/jbpm/jbpm3/jbpm-jpdl/3.2.10.SP3_seam2/jbpm-jpdl-3.2.10.SP3_seam2.jar; error in opening zip file
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :todo-ejb

错误已标红。

二、错误原因:未知!!!!

上网搜索,在Stack Overflow上看到一个人的回答,问题得以解决。

三、解决方法:进入.m2/respository/org

将jbpm这个文件删除,回到todo根目录,重新运行mvn clean install

会看到maven会重新下载所需的包,最后BUILD SUCCES

原创粉丝点击