【发布时间】:2014-03-08 23:45:46
【问题描述】:
是否可以从 AspectJ weaveDependencies 中创建一个例外(即要排除的东西)? 类似于下面带有大写字母的行?
<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>
【问题讨论】:
-
也许:
不过它并没有解决我的问题.. -
您想排除使用的方面,还是定义不应尝试编织的包?
-
定义不尝试编织的包
标签: maven package aspectj compile-time-weaving