我在IntelliJ中使用ajc编译器,以及aspectj plugin,其中声明了以下排除:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/EmployeeAccessAspect.java</exclude>
</excludes>
<complianceLevel>1.8</complianceLevel>
<showWeaveInfo>true</showWeaveInfo>
<verbose>true</verbose>
</configuration>
</plugin>当我使用mvn compile编译时,一切都很好,并且正确地忽略了EmployeeAccessAspect方面。
但是,如果我在Make中使用IntelliJ格式的项目,它只会编织它找到的所有方面(并且完全忽略maven排除)。
我总是可以破解ajc编译器的选项或方面路径来实现我想要的,但是如果我出于某种原因不得不排除一个方面,它会让我改变两个位置。
有任何方法使maven插件和ajc编译同步吗?我使用的是IntelliJ 15。
https://stackoverflow.com/questions/34118856
复制相似问题