Maven - 이클립스 Maven 연동 시 plug in 에러 날 경우
대략 이런 에러가 발생했을 경우.Multiple annotations found at this line: - Execution default-testResources of goal org.apache.maven.plugins:maven-resources- plugin:2.4.3:testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3 () (org.apache.maven.plugins:maven-resources- plugin:2.4.3:testResources:default-testResources:process-test-resources) - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile) - CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 (): ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven:maven-plugin-api:jar:2.0.6: ArtifactResolutionException: Failure to transfer org.apache.maven:maven-plugin-api:pom:2.0.6 from http://repo1.maven.org/ maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-plugin-api:pom:2.0.6 from/to central (http:// repo1.maven.org/maven2): null to http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin- api-2.0.6.pom - CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 (): ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven:maven-plugin-api:jar:2.0.6: ArtifactResolutionException: Failure to transfer org.apache.maven:maven-plugin-api:pom:2.0.6 from http://repo1.maven.org/ maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-plugin-api:pom:2.0.6 from/to central (http:// repo1.maven.org/maven2): null to http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin- api-2.0.6.pom - Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3 () (org.apache.maven.plugins:maven-resources- plugin:2.4.3:resources:default-resources:process-resources) - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin: 2.3.2:testCompile (execution: default-testCompile, phase: test-compile)
POM.xml을 확인해보면이렇게 되어 있을 것이고, 해결방법은 POM.xml에<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.lala.sarasa</groupId> <artifactId>msrdecision</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>msrdecision Maven Webapp</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <build> <finalName>hello</finalName> </build> </project>
이런식으로 디펜던시를 추가해주면 된다.(현재 날짜 기준으로 최신버전인 3.2.1은 되지 않는다.)<dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.4.3</version> </dependency>
이렇게 작성해준 뒤에,1. 프로젝트 우클릭 > Run As > Maven Install2. 이클립스 프로젝트 탐색기에서 해당 프로젝트 클릭 후 F5(새로고침)3. 프로젝트 우클릭 > Maven > Update Project끝!출처:http://jin-study.blogspot.com/2014/03/maven-maven-plug-in.html
Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts
Thursday, May 27, 2021
Maven - 이클립스 Maven 연동 시 plug in 에러 날 경우
Subscribe to:
Posts (Atom)
-
https://chrome.google.com/webstore/detail/video-cc-translator/fhbpmacbgklobobcieiaoibpjhdnmcfn youtube, udemy, udacity 자막 번역기 크롬브라우저 확장...
-
ALT + CTRL + T 를 입력하여 터미널을 띄운다. 터미널에서 ccsm 실행 $ccsm 실행 없을 경우 설치 $apt-get install compoziconfig-settings-manager 설치후 컴피즈 설정 관리자(cc...
-
우분투 gui 환경 지우기 / 우분투 gui 없애기 1. 우분투 데스크탑 환경 제거 sudo apt-get remove ubuntu-desktop 2. GNOME 데스크톱 매니저 제거 sudo apt-get remove gdm3 3. 그래픽...