My project must be built using JAVA 1.3 so I use the following compile plugin:
<plugin>
<inherited>true</inherited>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<source>1.3</source>
<target>1.3</target>
</configuration>
</plugin>
. However, during the build I require JUNIT4 tests to be executed so I need the sunfire plugin to use java 1.6. Is this possible in maven 3?
Change your plugin configuration to something like this instead: