I have one maven module (Module A) that contains the aspect and another module (Module B) in which I want to apply the aspects to. I tried passing in Module A as a weaveDependency (aka inPath) to the Module B config:
<aspectLibraries>
<aspectLibrary>
<groupId>com.mycompany</groupId>
<artifactId>ModuleA</artifactId>
</aspectLibrary>
</aspectLibraries>
<weaveDependencies>
<weaveDependency>
<groupId>com.mycompany</groupId>
<artifactId>ModuleA</artifactId>
</weaveDependency>
</weaveDependencies>
</configuration>
As a result of this, I see the Module A aspect class files are in the target directory but it doesn't seem to prevent the NoSuchMethodError from happening.