Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.2
-
Fix Version/s: 2.1
-
Labels:None
-
Environment:all
-
Number of attachments :
Description
use case: (described in http://www.nabble.com/compiler-plugin:-separate-test-compiler-configuration-tt20058021.html )
- main code is java 1.4 and should remain such for the release
- unit tests are junit 4 based
to address this use case in cli, modify compiler plugin to accept testSource and testTarget configuration parameters
Issue Links
- is duplicated by
-
MCOMPILER-15
ability to have different test compilation parameters to general compilation parameters
-
I modified 2.1 trunk, added
So that we can now use:
<build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.1-SNAPSHOT</version> <configuration> <source>1.4</source> <target>1.4</target> <testSource>1.5</testSource> <testTarget>1.5</testTarget> <testCompilerArgument>-bootclasspath ${java.home}\lib\rt.jar</compilerArgument> <testCompilerArguments> <verbose /> </testCompilerArguments> </configuration> </plugin> </plugins> </build>Snapshot published in apache snapshots. Changes commited to trunk