728x90
반응형
질문 : SpringData Maven Builds의“수명주기 구성에 포함되지 않는 플러그인 실행”을 해결하는 방법
SpringData 및 Neo4j 와 함께 작업하려고합니다. 나는 메인 사이트에 링크 된 이 가이드 를 따르는 것으로 시작했습니다. 특히 "Hello, World!" 에서 pom.xml을 기반으로했습니다. 예제 파일 . 다음은 문제를 일으키는 플러그인에 대한 pom.xml의 일부입니다.
<plugin> <!-- Required to resolve aspectj-enhanced class features --> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> <version>1.0</version> <configuration> <outxml>true</outxml> <aspectLibraries> <aspectLibrary> <groupId>org.springframework</groupId> <artifactId>spring-aspects</artifactId> </aspectLibrary> <aspectLibrary> <groupId>org.springframework.data</groupId> <artifactId>spring-data-neo4j</artifactId> </aspectLibrary> </aspectLibraries> <source>1.6</source> <target>1.6</target> </configuration> <executions> <!-- ERROR HERE IN ECLIPSE SEE BELOW FOR FULL MESSAGE --> <execution> <goals> <goal>compile</goal> <goal>test-compile</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>${aspectj.version}</version> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjtools</artifactId> <version>${aspectj.version}</version> </dependency> </dependencies> </plugin>
내가보고있는 오류는 다음과 같습니다.
Multiple annotations found at this line: - Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.0:compile (execution: default, phase: process-classes) - Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.0:test-compile (execution: default, phase: process-classes)
Eclipse 3.6.2 및 m2e 0.13을 실행하고 있습니다. 나는 Maven 전문가가 아니므로 가능하면 답변에 매우 설명해 주시기 바랍니다.
이 업데이트 사이트 를 통해 m2e 1.0.0 도 시도했지만 여전히 동일한 오류가 발생합니다.
답변
비슷한 문제의 경우 Andrew의 수정 제안을 사용하는 대신 문제의 pom.xml에 <pluginManagement> 태그를 도입 한 후에 간단히 작동했습니다. 해당 오류는 <pluginManagement> 태그 누락으로 인한 것 같습니다. 따라서 Eclipse에서 예외를 방지하려면 다음과 같이 모든 플러그인 태그를 <pluginManagement> 태그 안에 넣어야합니다.
<build> <pluginManagement> <plugins> <plugin> ... </plugin> <plugin> ... </plugin> .... </plugins> </pluginManagement> </build>
이 구조가 제자리에 있으면 오류가 사라집니다.
출처 : https://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin
728x90
반응형
'프로그래밍 언어 > Spring MyBatis' 카테고리의 다른 글
Spring Framework의 장점 (0) | 2021.06.28 |
---|---|
Spring @Autowired 필드가 null 인 이유 (0) | 2021.06.28 |
Spring Framework에서 @Inject와 @Autowired의 차이점 (0) | 2021.06.11 |
Spring Boot 애플리케이션 용 포트를 구성하는 방법 (0) | 2021.06.10 |
SpringData JPA에서 CrudRepository와 JpaRepository 인터페이스의 차이점 (0) | 2021.06.10 |