softweave (1) [Avatar] Offline
#1
My problem turned out to be due to defining call() rather than execution() pointcuts. Once that mistake was corrected, the woven jar file performed as I'd expected.

=================

I created an aspect library jar and am weaving it into java classes that go into a woven jar. I'm using aspectj-maven-plugin 1.3 to build the aspect library and weave it into the java classes.

If I run a JUnit that tests the weaving in the the woven project, it passes. If I copy the same JUnit test into a project that depends on the woven project's jar and aspectjrt.jar, the JUnit test fails. This is unexpected given your explanation of how binary weaving works.

I would appreciate any insights you might have into what is causing this problem.

<pom.xml details deleted>