4
如何配置AspectJ以獲得編譯後編織?我剛剛更換「編譯」,在下面的插件「後編譯」:(不用說,這是unseccessful)如何配置aspectj以獲得編譯後編織(使用maven)?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.5</version>
<configuration>
<complianceLevel>1.6</complianceLevel>
<source>1.6</source>
<target>1.6</target>
</configuration>
<executions>
<execution>
<goals>
<goal>post-compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
但我想念的東西,因爲它提供了以下錯誤:
'post-compile' was specified in an execution, but not found in the plugin
您的帖子提到後編譯編織但標記爲「加載時織造」。這些是兩個截然不同的東西 - 從文檔開始,[「編織過程本身可以發生在三個不同的時間之一:編譯時間,後期編譯時間和加載時間。」](https://eclipse.org/的AspectJ/DOC /下/ devguide/ltw.html)。你在追求什麼? – bacar