<excludes>
<exclude>**/gaffer/*.java</exclude>
<exclude>**/gaffer/**.java</exclude>
</excludes>
Excluding certain packages from Maven aspectj weavedependencies
-
09-10-2022 - |
Domanda
Is it possible to make an exception (i.e. something to be excluded ) from AspectJ weaveDependencies? Something like the line with capital letters below?
<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>
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow