尝试使用Maven编译默认CXF项目时出错

时间:2011-11-26 03:57:52

标签: maven cxf archetypes

我正在尝试使用原型:org.apache.cxf.archetype:cxf-jaxws-javafirst 并做一个Maven编译。我收到此错误:我尝试使用不同版本的JDK,但无法成功。请帮助。

[INFO] Compiling 2 source files to D:\myApp\ProcessOrder\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error: error reading D:\Documents and Settings\User1\.m2\repository\x
ml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar; cannot read zip file entry
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.859s
[INFO] Finished at: Sat Nov 26 09:24:24 IST 2011
[INFO] Final Memory: 7M/13M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project ProcessOrder: Compilation failure
[ERROR] error: error reading D:\Documents and Settings\User1\.m2\repository\x
ml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar; cannot read zip file entry
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on
 project ProcessOrder: Compilation failure
error: error reading D:\Documents and Settings\User1\.m2\repository\xml-resol
ver\xml-resolver\1.2\xml-resolver-1.2.jar; cannot read zip file entry

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)

1 个答案:

答案 0 :(得分:2)

  

错误:读取D:\ Documents和错误   设置\ User1.m2 \库\ XML的甲阶酚醛树脂   版本\ XML的分解器\ 1.2 \ XML解析程序-1.2.jar;无法读取zip文件条目

也许你应该删除这个jar或更好的仍然是持有jar的文件夹,然后再试一次。它看起来像是腐败的罐子。

相关问题