2011-07-09 84 views
2

這是我第一次嘗試使用mavan當我發出「MVN安裝」(在Vista上運行),我得到了以下錯誤:MVN安裝:未能執行的javac,但無法解析錯誤

[ERROR] Failure executing javac, but could not parse the error: 
C:\Users\Kaze Kun\.m2\respository\org\jboss\resteasy\resteasy-jaxrs\2.2.1.GA\resteasy-jaxrs-2.2.1.GA.jar. error in opening zip file 

我搜索並找到了一些關於需要設置JAVA_HOME環境變量的線程。但是,這對我來說似乎不是這樣,因爲我已經在C:\ Java \ jdk1.6.0_24上設置了我的JAVA_HOME變量。只是想知道問題的原因是什麼?

下面是行家的錯誤消息的詳細捕獲:

[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> 

回答

0

的錯誤似乎表明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 

和重試。

相關問題