参考:

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2021-12-10
  • 2021-08-26
  • 2021-09-18
  • 2021-05-22
  • 2021-06-05
猜你喜欢
  • 2022-01-03
  • 2021-11-11
  • 2022-12-23
  • 2022-01-01
  • 2021-05-25
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案