如何配置 AspectJ 以获得编译后编织?我只是在下面的插件中将“compile”替换为“post-compile”:(不用说这是不安全的)
<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