You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Roman Kournjaev <ko...@gmail.com> on 2009/07/22 15:17:52 UTC

Define a special JDK for compilation

Hi Guys

Do you know where do i adjust the JDK for maven specially ? I know that
maven takes the JAVA_HOME as a default, but i have a problem with that , i
want it to take a special javac from some other JDK.

Thanks
Roman

Re: Define a special JDK for compilation

Posted by Roman Kournjaev <ko...@gmail.com>.
Thanks!!

I forgot the compilation-plugin !!


On Wed, Jul 22, 2009 at 4:42 PM, Jonathan Woods <
jonathan.woods@scintillance.com> wrote:

> Assuming you mean you want to specify a particular javac for Maven to use
> when compiling code... compilation is carried out (by default) by the Maven
> compiler plugin, so it's this you need to configure.  Details on
> configuring
> it to use a specific JDK are given here:
>
>
> http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using
> -different-jdk.html<http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using%0A-different-jdk.html>
>
> Jon
>
> > -----Original Message-----
> > From: Roman Kournjaev [mailto:kournjaev@gmail.com]
> > Sent: 22 July 2009 14:18
> > To: Maven Users List
> > Subject: Define a special JDK for compilation
> >
> > Hi Guys
> >
> > Do you know where do i adjust the JDK for maven specially ? I
> > know that maven takes the JAVA_HOME as a default, but i have
> > a problem with that , i want it to take a special javac from
> > some other JDK.
> >
> > Thanks
> > Roman
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: Define a special JDK for compilation

Posted by Jonathan Woods <jo...@scintillance.com>.
Assuming you mean you want to specify a particular javac for Maven to use
when compiling code... compilation is carried out (by default) by the Maven
compiler plugin, so it's this you need to configure.  Details on configuring
it to use a specific JDK are given here:

http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using
-different-jdk.html

Jon

> -----Original Message-----
> From: Roman Kournjaev [mailto:kournjaev@gmail.com] 
> Sent: 22 July 2009 14:18
> To: Maven Users List
> Subject: Define a special JDK for compilation
> 
> Hi Guys
> 
> Do you know where do i adjust the JDK for maven specially ? I 
> know that maven takes the JAVA_HOME as a default, but i have 
> a problem with that , i want it to take a special javac from 
> some other JDK.
> 
> Thanks
> Roman
> 


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