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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM