2012-11-28 9 views
0

vaadin openlayers 부가 기능에 몇 가지 버그를 수정하고 싶습니다. 따라서 소스 코드를 빌드하려면이 링크 http://code.google.com/p/vopenlayers/wiki/DevelopingAndBuilding에있는 단계를 따랐습니다.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 

내가이 문제를 해결하는 데 도움이 될 수 있습니다 다음 MVN 설치 명령을 실행하는 경우 그러나, 나는이 오류가?

PS : 나는 우분투를 사용하고 64 비트

답변

1

12.04 당신은 당신이 root .m2 폴더를 사용해야 확신합니다. 사용하지 마십시오. 보안/권한 관련 문제를 피하는 데 도움이됩니다.

root가 아닌 다른 사용자 프로필로 mvn을 설치하고 있으며 settings.xml이 .m2를 향해 root 아래에 있다고 추측합니다. maven 프로세스가 zip 파일을 통해 의존성을 추출하려고 시도하고 있는데, zip 파일은 파일 사용 권한 문제를 겪습니다.

+0

아니요, 루트 프로필로 처리하고 있습니다. 이것이 mvn이 루트 .m2 파일을 자동으로 사용하는 이유입니다. 나는 루트를 종료하고 mvn을 다시 시도했다. 그래서, 도움을 주셔서 감사합니다 – ofakher

관련 문제