使用 aspectj-maven-plugin 编绎打包 使用aspectJ 的maven项目
参考:
http://stackoverflow.com/questions/14514599/how-to-use-aspectj-maven-plugin
You need to install the AspectJ Maven configurator. It is available here:
http://dist.springsource.org/release/AJDT/configurator/
Help -> Install new software...
Add this update site to the "work with" section and select the feature.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
mvn clean compile
或 mvn clean package

浙公网安备 33010602011771号