如何解決Spring數據Maven構建的“生命周期配置未涵蓋的插件執行”問題我想和你一起工作Spring數據與Neo4j..我一開始就是想跟著本指南鏈接到主站點。尤其是基于“你好,世界!”示例文件..下面是導致這些問題的插件的片段。<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)我正在運行Eclipse3.6.2和M2E0.13。我不是一個Maven專家,所以如果可能的話,請對你的答案做很好的解釋。我也試過M2E 1.0.0通孔此更新站點仍然會犯同樣的錯誤。
3 回答

慕容森
TA貢獻1853條經驗 獲得超18個贊
<build> <pluginManagement> <plugins> <plugin> ... </plugin> <plugin> ... </plugin> .... </plugins> </pluginManagement></build>

揚帆大魚
TA貢獻1799條經驗 獲得超9個贊
使用 快速修復中的誤差 柚木并選擇 Permanently mark goal run in pom.xml as ignored in Eclipse build
-這將為您生成所需的樣板代碼。 若要指示Eclipse在構建過程中運行插件,只需替換 <ignore/>
帶標簽 <execute/>
在生成的配置中標記: <action> <execute/></action>
或者,您也可以指示Eclipse在增量構建上運行插件: <action> <execute> <runOnIncremental>true</runOnIncremental> </execute ></action>
- 3 回答
- 0 關注
- 904 瀏覽
添加回答
舉報
0/150
提交
取消