> Java 1.4 is the minimum required version for use with maven
> 2. So I don't think it's going to work.
>
> Roald Bankras
Java SE 1.4 is the minimum to run Maven2 itself. However, it should be able
to fork off and execute any JDK. I don't know why M2 should always use a
source argument - if none was specified, shouldn't it not include that
argument (i.e. leave it as the default)?
Anyway, I have compiled for 1.3, but I didn't use a separate JDK. I set
source and target to 1.3, and used bootclasspath to point to rt.jar from the
1.3 JDK. The settings in pom.xml looked like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.3</source>
<target>1.3</target>
<compilerArguments>
<bootclasspath>..\..\tools\jdk\1.3.1_15\jre\lib\rt.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>
I don't know if this will fill Tung's needs, however. I've never used JDK
1.2 - it's ancient history. ;)
--
Daniel Siegmann
FJA-US, Inc.
(212) 840-2618 ext. 139
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]