0
我想修復vaadin openlayers附加組件中的一些錯誤。因此,爲了構建源代碼,我遵循在此鏈接http://code.google.com/p/vopenlayers/wiki/DevelopingAndBuilding中找到的步驟。但是,運行mvn install命令時出現此錯誤:構建vopenlayers時出錯
[INFO] Building Unnamed - org.vaadin.vol:openlayers-wrapper:jar:1.2.1-SNAPSHOT
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 146 resources
[INFO] skip non existing resourceDirectory /home/fakher/Desktop/vopenlayers-read-only/src/main/resources
[INFO] Copying 111 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/fakher/Desktop/vopenlayers-read-only/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 37 source files to /home/fakher/Desktop/vopenlayers-read-only/target/test-classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
error: error reading /root/.m2/repository/org/eclipse/jetty/jetty-continuation/7.2.2.v20101205/jetty-continuation-7.2.2.v20101205.jar; error in opening zip file
error: error reading /root/.m2/repository/org/eclipse/jetty/jetty-http/7.2.2.v20101205/jetty-http-7.2.2.v20101205.jar; error in opening zip file
error: error reading /root/.m2/repository/org/eclipse/jetty/jetty-io/7.2.2.v20101205/jetty-io-7.2.2.v20101205.jar; error in opening zip file
error: error reading /root/.m2/repository/org/eclipse/jetty/jetty-util/7.2.2.v20101205/jetty-util-7.2.2.v20101205.jar; error in opening zip file
error: error reading /root/.m2/repository/org/eclipse/jetty/jetty-webapp/7.2.2.v20101205/jetty-webapp-7.2.2.v20101205.jar; error in opening zip file
error: error reading /root/.m2/repository/org/eclipse/jetty/jetty-xml/7.2.2.v20101205/jetty-xml-7.2.2.v20101205.jar; error in opening zip file
error: error reading /root/.m2/repository/org/eclipse/jetty/jetty-servlets/7.2.2.v20101205/jetty-servlets-7.2.2.v20101205.jar; error in opening zip file
error: error reading /root/.m2/repository/org/eclipse/jetty/jetty-client/7.2.2.v20101205/jetty-client-7.2.2.v20101205.jar; error in opening zip file
誰能幫我解決這個問題?
PS:我使用Ubuntu 12.04 64位
不,我正在使用根配置文件。這就是爲什麼mvn會自動使用根.m2文件。我退出了root並重新安裝了mvn。所以,它的工作 謝謝你的幫助 – ofakher