'sts에서 maven 오류'에 해당되는 글 1건

  1. 2014.01.03 [펌] sts에서 maven 오류
반응형
이클립스에서 나는 에러메시지들
Failure to transfer org.apache.maven.plugins:maven-jar-plugin:pom:2.3.1 from http://myrepository
was cached in the local repository, resolution will not be reattempted until the 
 update interval of Nexus has elapsed or updates are forced. Original error: Could not transfer artifact 
 org.apache.maven.plugins:maven-jar-plugin:pom:2.3.1 from/to XXX( http://myrepository ): The operation was cancelled.

Description Resource Path Location Type
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.3.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.3.1 pom.xml /MyProject  line 1 Maven Build Problem

이런 에러가 나서 구글링 해봤더니 stack overflow에서 아래와 같은 답변들을 찾았다.
http://stackoverflow.com/questions/5074063/maven-problem-failure-to-transfer 
http://stackoverflow.com/questions/4220960/maven-build-failure-failure-to-find-plugins 
http://stackoverflow.com/questions/4856307/when-maven-says-resolution-will-not-be-reattempted-until-the-update-interval-of  

적용해봐도 소용없었다.
에러메시지를 조금 더 자세히보니 무슨 tools.jar 가 없다네?
이거 이클립스에서 사용하는 jre를 바꿔줘야되나?
Preferences->Java->Installed JREs 에서 jdk를 사용하도록 바꿔준다.

그럼 해결! 

 

출처 : http://gladtosee.tistory.com/archive/201203 

 

Posted by 1010