You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marc Jambert <ma...@vegatechnologies.fr> on 2005/04/12 17:58:26 UTC

Maven2 - How to specify which jdk to use ?

Hi all,

I have just started using Maven2 today and I am wondering if anybody 
found how to specify which jdk to use. I have added the following 
section in my settings.xml but it keeps using jdk 1.4.2 (I want to build 
using 5.0).

  <jdks>
     <jdk>
      <active>true</active>
      <version>5.0</version>
      <javaHome>/usr/share/java/jdk1.5.0_01</javaHome>
     </jdk>
    
     <jdk>
       <active>false</active>
       <version>1.4.2</version>
       <javaHome>/usr/share/java/j2sdk1.4.2_07</javaHome>
     </jdk>
  </jdks>

Thanks!




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