Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 1.3
-
Fix Version/s: None
-
Labels:None
-
Environment:MacOS 10.6.5
-
Testcase included:yes
Description
After upgrading from 1.2 to 1.3 our Maven builds failed. It seems that 'mvn test-compile' fails because the aspects are not weaved to the test classes.
I stripped down the problem to a simple demo project which is attached (demo.zip). If you switch the aspectj-maven-plugin to version 1.2 you will see that 'mvn test-compile' will work. With 1.3 you will get a compiler error.
Issue Links
- relates to
-
MASPECTJ-13
Change compile task to run after project classess compilation.
-
Problem is caused by
MASPECTJ-13: rev. 10439.By binding it to the next phase the maven-compiler-plugin:2.3.2:testCompile is executed before aspectj-maven-plugin:1.4-SNAPSHOT:test-compile which causes the problem.
But when reverting it, something else happens:
aspectj-maven-plugin:1.4-SNAPSHOT:test-compile is executed before maven-resources-plugin:2.4.3:testResources and that's not the order as expected.
So this will require some more investigation.
MASPECTJ-13: rev. 10439. By binding it to the next phase the maven-compiler-plugin:2.3.2:testCompile is executed before aspectj-maven-plugin:1.4-SNAPSHOT:test-compile which causes the problem. But when reverting it, something else happens: aspectj-maven-plugin:1.4-SNAPSHOT:test-compile is executed before maven-resources-plugin:2.4.3:testResources and that's not the order as expected. So this will require some more investigation.