You should (unless I misunderstood you) be able to set your JAVA_HOME to
1.5 and still compile in 1.4. In your pom, you would need something
like...
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.4</source>
<target>1.4</target>
</configuration>
</plugin>
...
</plugins>
</build>
...
-----Original Message-----
From: Fisher, Michael (IT) [mailto:[EMAIL PROTECTED]
Sent: Monday, May 22, 2006 11:23 AM
To: 'Maven Users List'
Subject: Plugin versions and JDK
Hello,
Quick question regarding JDK versions and running Maven2 plugins...
Maven requires a JAVA_HOME system property to be set in order to run,
when I set this to point to a 1.4.2_06 JDK, I get an
UnsupportedClassVersion exception when I get to the surefire test cycle
(Using version 2.0 of Surefire). When looking at the JAR, it seems to
have been built with 1.5.2_05. Does this mean I need to be running a
1.5+ JDK in order to use the latest version of such plugins?
The reason I ask, is because even though I could build my software on
1.5+, I cannot deploy it to an environment running above 1.4.2. What is
the suggested work around for this?
Thanks,
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]