Maven Install시 오류가 발생함
- 작성자 :
- 진*일
- 작성일 :
- 2012-08-29 16:30:35
- 조회수 :
- 2,522
- 구분 :
- 개발환경
- 진행상태 :
- 완료
Q
환경을 이것저것 만져보다가 되던것이 갑자기 안되어서 문의 드립니다.
전자정부프레임워크때 받은 교육 프로젝트들에 대해서 maven install 하면 다음과
같은 오류메세지가 나옵니다.
프로젝트명은 lab101로 테스트 했으며 오류메세지는
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ Lab101 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ Lab101 ---
[WARNING] The POM for org.apache.maven.surefire:surefire-booter:jar:2.7.1 is missing, no dependency information available
[WARNING] The POM for org.apache.maven.surefire:maven-surefire-common:jar:2.7.1 is missing, no dependency information available
[WARNING] The POM for org.apache.maven:maven-toolchain:jar:2.0.9 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.373s
[INFO] Finished at: Wed Aug 29 16:19:58 KST 2012
[INFO] Final Memory: 4M/7M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (default-test) on project Lab101: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.7.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven.surefire:surefire-booter:jar:2.7.1, org.apache.maven.surefire:maven-surefire-common:jar:2.7.1: The repository system is offline but the artifact org.apache.maven.surefire:surefire-booter:jar:2.7.1 is not available in the local repository. -> [Help 1]
[ERROR]
이렇듯 플러그인쪽에서 에러가 발생하는데요 원인을 모르겠습니다.
또한 repository에는 해당 플러그인 jar가 모두 있습니다.
전자정부프레임워크때 받은 교육 프로젝트들에 대해서 maven install 하면 다음과
같은 오류메세지가 나옵니다.
프로젝트명은 lab101로 테스트 했으며 오류메세지는
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ Lab101 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ Lab101 ---
[WARNING] The POM for org.apache.maven.surefire:surefire-booter:jar:2.7.1 is missing, no dependency information available
[WARNING] The POM for org.apache.maven.surefire:maven-surefire-common:jar:2.7.1 is missing, no dependency information available
[WARNING] The POM for org.apache.maven:maven-toolchain:jar:2.0.9 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.373s
[INFO] Finished at: Wed Aug 29 16:19:58 KST 2012
[INFO] Final Memory: 4M/7M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (default-test) on project Lab101: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.7.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven.surefire:surefire-booter:jar:2.7.1, org.apache.maven.surefire:maven-surefire-common:jar:2.7.1: The repository system is offline but the artifact org.apache.maven.surefire:surefire-booter:jar:2.7.1 is not available in the local repository. -> [Help 1]
[ERROR]
이렇듯 플러그인쪽에서 에러가 발생하는데요 원인을 모르겠습니다.
또한 repository에는 해당 플러그인 jar가 모두 있습니다.
A
안녕하세요.. 진승일님..
Maven 3의 경우는 plugin에 대한 artifact들은 별도의 repository로 부터 받아오도록 변경되었습니다.
기존 <repositories> 부분을 그대로 복사 하셔서.. <plugRepositories>로 변경하십시오.
내부에 있는 <repository> 들도.. <plugRepository>로 변경하시구요..
(<repositories>와 <pluginRepositories> 2개 모두 있어야 함)
그럼.. 즐거운 하루되십시오.
감사합니다.
Maven 3의 경우는 plugin에 대한 artifact들은 별도의 repository로 부터 받아오도록 변경되었습니다.
기존 <repositories> 부분을 그대로 복사 하셔서.. <plugRepositories>로 변경하십시오.
내부에 있는 <repository> 들도.. <plugRepository>로 변경하시구요..
(<repositories>와 <pluginRepositories> 2개 모두 있어야 함)
그럼.. 즐거운 하루되십시오.
감사합니다.