使用 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

 

posted @ 2013-01-29 11:40  庚武  Views(5988)  Comments(0Edit  收藏  举报