最佳答案
我正在尝试使用Spring Data和Neo4j。我首先尝试遵循主站点链接到的本指南。特别是我的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专家,所以如果可能,请在您的答案中非常解释。