'How can we run aspectj-maven-plugin from Bazel to weave classes?
I have a Maven project which has some custom annotations written using the AspectJ library. In Maven POM we are using an AspectJ plugin which does compile-time weaving for the annotated classes. Is there a way where we can use this plugin in Bazel when building the JAR, or is there any other plugin that we can use for AspectJ with Bazel?
It would be really helpful if someone already has a solution for this or, can guide me in the right direction.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.14.0</version>
<configuration>
<complianceLevel>11</complianceLevel>
<source>11</source>
<target>11</target>
<showWeaveInfo>true</showWeaveInfo>
<verbose>true</verbose>
<Xlint>ignore</Xlint>
<encoding>UTF-8</encoding>
<excludes>
<exclude>**/pointcutadvice/**</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
