Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Environment:all
-
Number of attachments :
Description
It looks as if the plugin compiles main/java under the compile:compile goal
and places the resulting class files under target/classes. Then under the
compile:testCompile goal it compiles main/java (again) as well test/java and
places the resulting class files under target/test-classes!
Issue Links
- duplicates
-
MASPECTJ-23
Strange problem with aspectj plugin swapping main and test classes and resources
-
Ok.. here is what I am going to do:
adding a switch to the test-compile mojo to indicate wheter to weave main classes or not. like e.g
<configuration>
<weaveMainClasses>false</weaveMainClasses>
</configuration>
To make shure I do not brake builds made before this change I set the weaveMainClasses default to true.
The reporter of this issue (Jimisola Laursen) argued that this was kind of a strange default behaviour, and I tend to agree. So WHYT, should I set the default to false even if this could potentially ruin builds, or should I set it to false even if that is not a sensible default ?