从Maven aspectj weavedependencies中排除某些包
是否可以从AspectJ weaveDependencies中做出例外(即,要排除的内容)? 类似下面大写字母的线条从Maven aspectj weavedependencies中排除某些包,maven,package,aspectj,compile-time-weaving,Maven,Package,Aspectj,Compile Time Weaving,是否可以从AspectJ weaveDependencies中做出例外(即,要排除的内容)? 类似下面大写字母的线条 <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> <version>1.5</ve
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.5</version>
<configuration>
<weaveDependencies>
<weaveDependency>
<groupId>org.agroup</groupId>
<artifactId>to-weave</artifactId>
***<EXCLUDE>WE.DONT.NEED.THIS.SUB.PACKAGE </EXCLUDE>***
</weaveDependency>
</weaveDependencies>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
org.codehaus.mojo
aspectj maven插件
1.5
org.agroup
编织
***我们不需要这个包***
编译
...
**/gaffer/*.java
**/gaffer/**.java
maybe:这并没有解决我的问题..您想排除使用方面,还是定义不应尝试编织的包?定义不应尝试编织的包此答案没有解决上述问题-如果将此块添加到a,您将得到语法错误。您可以使用您给出的形式来表示源代码中希望从编织中排除的包,甚至可以排除pom部分中不需要的临时依赖项,但到目前为止AspectJ maven插件不支持这一功能。
<excludes>
<exclude>**/gaffer/*.java</exclude>
<exclude>**/gaffer/**.java</exclude>
</excludes>