Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven mvn安装:执行javac失败,但无法分析错误_Maven - Fatal编程技术网

Maven mvn安装:执行javac失败,但无法分析错误

Maven mvn安装:执行javac失败,但无法分析错误,maven,Maven,这是我第一次尝试使用mavan,当我发布“mvn安装”(在vista上运行)时,出现了以下错误: 我在谷歌上搜索并找到了一些关于需要设置JAVA_HOME环境变量的线程。但是,我似乎不是这样,因为我已经将JAVA_HOME变量设置为C:\JAVA\jdk1.6.0_24。只是想知道问题的原因是什么 下面是maven错误消息的更详细捕获: [WARNING] File encoding has not been set, using platform encoding MS932, i.e. bu

这是我第一次尝试使用mavan,当我发布“mvn安装”(在vista上运行)时,出现了以下错误:

我在谷歌上搜索并找到了一些关于需要设置JAVA_HOME环境变量的线程。但是,我似乎不是这样,因为我已经将JAVA_HOME变量设置为C:\JAVA\jdk1.6.0_24。只是想知道问题的原因是什么

下面是maven错误消息的更详细捕获:

[WARNING] File encoding has not been set, using platform encoding MS932, i.e. bu
ild is platform dependent!
[INFO] Compiling 3 source files to C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-w
orkbook\ex03_1\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
エラー:C:\Users\Kaze Kun\.m2\repository\org\jboss\resteasy\resteasy-jaxrs\2.2.1.
GA\resteasy-jaxrs-2.2.1.GA.jar の読み込みエラーです。error in opening zip file
エラー 1 個

[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:22.828s
[INFO] Finished at: Sat Jul 09 11:11:17 CST 2011
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project workbook-ex03_1: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] エラー:C:\Users\Kaze Kun\.m2\repository\org\jboss\resteasy\resteasy-jaxr
s\2.2.1.GA\resteasy-jaxrs-2.2.1.GA.jar の読み込みエラーです。error in opening zi
p file
[ERROR] エラー 1 個
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-workbook\ex03_1>

该错误似乎表明
resteasy-jaxrs-2.2.1.GA.jar
已损坏

您应该尝试删除此文件

C:\Users\Kaze Kun\.m2\repository\org\jboss\resteasy\resteasy-jaxr
s\2.2.1.GA\resteasy-jaxrs-2.2.1.GA.jar
和重试

C:\Users\Kaze Kun\.m2\repository\org\jboss\resteasy\resteasy-jaxr
s\2.2.1.GA\resteasy-jaxrs-2.2.1.GA.jar