반응형
기존에 사용했던 프로젝트가 pom.xml이 없어서 dependency 추가도 어렵고 관리를 하기도 힘들었다. 그래서, 이 기회에 자바 프로젝트를 Maven 프로젝트로 변환을 해서 pom.xml을 생성하고 라이브러리 관리를 하려고 이 글을 작성한다.
1. [Maven 프로젝트로 변환할 프로젝트 오른쪽 클릭] - [Configure] - [Convert to Maven Project] 버튼을 누른다.
2. 버튼을 누르면, 아래 [Create new POM] 팝업창이 나온다. 여기서, Group Id와 Artifact Id를 입력하고 Finish 버튼을 누른다.
3. pom.xml이 생성되고, Maven Update를 하려고 하니 아래의 에러가 발생했다.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
C:\Users\test\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.6\aether-3c6a2962-43f1-45c8-824e-1d792d2d4bf5-maven-resources-plugin-2.6.pom-in-progress (액세스가 거부되었습니다)
이 문제는 아래의 링크에서 해결할 수 있다.
[이클립스/Eclipse] 이클립스(Eclipse) Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plu
이클립스(Eclipse)의 자바 프로젝트를 Maven 프로젝트로 변환해서 라이브러리를 pom.xml에서 관리하려고 Maven 프로젝트를 변한하고 Maven Update를 했더니 아래와 같은 에러가 발생했다. Could not calculate bu
yongku.tistory.com
4. Maven 프로젝트로 변환하는 것은 정말 간단하다. 여기서 좀 노가다 스러운게 pom.xml에 dependency를 차곡차곡 넣는게 너무 귀찮을 뿐!
반응형
최근댓글