maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niels Gylling ...@it-practice.dk>
Subject Re: Using alternative JDK
Date Tue, 27 Feb 2007 11:03:26 GMT
Or, if you for some obscure reason need jdk 1.3:

     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-compiler-plugin</artifactId>
       <configuration>
         <fork>true</fork>
         <executable><your-jdk1.3-javac.exe></executable>
         <compilerVersion>1.3</compilerVersion>
       </configuration>
     </plugin>


AND if for some other obscure reason use w2k OR have very many source 
files, the forked compiler command line will blow up and fail.

There you will need a compiler component that will provide the source 
file names as a @ argument to javac.

Who said m2 was easy?

/Niels

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message