performance - Is there "skip weaving flag" in Maven? (exclude AspectJ) -


i build our multi-project application maven(lots of pom.xml-s). introduced aspectj, suspect aspectj contributes performance problems. in order sure, i'd build application time without aspectj , see how performs. not remove aspectj related stuff pom.xml, handy if there kind of flag or exclude aspectj build. there any?
update: not seem have effect: -dmaven.aspectj.skip=true

if want disable aspectj-maven-plugin temporarily, add profile parent pom.xml deregisters executions of plugin (by assigning them phase none). (add own execution ids if have some):

<profile>     <id>noaspectj</id>     <build>         <plugins>             <plugin>                 <groupid>org.codehaus.mojo</groupid>                 <artifactid>aspectj-maven-plugin</artifactid>                 <executions>                     <execution>                         <id>compile</id>                         <phase>none</phase>                     </execution>                     <execution>                         <id>test-compile</id>                         <phase>none</phase>                     </execution>                 </executions>             </plugin>         </plugins>     </build> </profile> 

a simple maven cmd activates this:

mvn clean install -pnoaspectj 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -