RE: compile plugin

2012-06-26 Thread Belhadj abdessalem
Are you sure that you have specified the best jdk.
Perhaps you point to the jre locaton
Le 25 juin 2012 19:22,  a écrit :

>
>
> >
> > Run "whereis java" ("where java" in Windows) to find out how many java
> > executable you might have in PATH and which one is listed first. That's
> where
> > I'd start.
>
> I'm beyond that phase already, but thanks.  I'm on linux, and the mvn
> start up script checks
> JAVA_HOME to see which version of java to use.  This works, but it doesn't
> seem to propogate down to the javac invocation by the compile plugin.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: compile plugin

2012-06-25 Thread Benson Margulies
What version of the maven-compiler-plugin are you using?

On Mon, Jun 25, 2012 at 1:23 PM,   wrote:
>
>
>>
>> Run "whereis java" ("where java" in Windows) to find out how many java
>> executable you might have in PATH and which one is listed first. That's where
>> I'd start.
>
> I'm beyond that phase already, but thanks.  I'm on linux, and the mvn start 
> up script checks
> JAVA_HOME to see which version of java to use.  This works, but it doesn't 
> seem to propogate down to the javac invocation by the compile plugin.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

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



RE: compile plugin

2012-06-25 Thread Chad.Davis


> 
> Run "whereis java" ("where java" in Windows) to find out how many java
> executable you might have in PATH and which one is listed first. That's where
> I'd start.

I'm beyond that phase already, but thanks.  I'm on linux, and the mvn start up 
script checks
JAVA_HOME to see which version of java to use.  This works, but it doesn't seem 
to propogate down to the javac invocation by the compile plugin.  
 


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



Re: compile plugin

2012-06-25 Thread martin.eisengardt
I found another way:
http://maven.apache.org/guides/mini/guide-using-toolchains.html

It seems to be pretty nice. However it still requires to change your
pom.xml and add the toolchain plugin (f.e. in a parent-pom).
The configuration is located in your toolchain.xml locally on the
workstation (same path your local settings.xml is found).


RE: compile plugin

2012-06-25 Thread Amir Gheibi
Run "whereis java" ("where java" in Windows) to find out how many java 
executable you might have in PATH and which one is listed first. That's where 
I'd start.



-Original Message-
From: chad.da...@emc.com [mailto:chad.da...@emc.com]
Sent: June-25-12 9:45 AM
To: users@maven.apache.org
Subject: compile plugin

I've got multiple jdk's installed.  I'm trying to force maven to use my java 7. 
 I invoke mvn with a JAVA_HOME value that points to my desired jdk, but then 
the compile plugin complains about 1.7 not being a valid source setting . . . 
seems like the JAVA_HOME doesn't control the execution of the compile plugin . 
. .

Ideas?

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



RE: compile plugin

2012-06-25 Thread Chad.Davis
Hi Martin.

I saw that actually.  It seems kind of hacky to me . . . like, a workaround for 
my local java installations, and I don't want to modify the build for my own 
dev situation. 

It seems like if I set the JAVA_HOME for mvn, it should use the java I'm 
telling it to . . . do you have any thoughts on why that doesn't work?  

Thanks,
Chad

> -Original Message-
> From: martin.eisengardt [mailto:martin.eisenga...@googlemail.com]
> Sent: Monday, June 25, 2012 10:51 AM
> To: Maven Users List
> Subject: Re: compile plugin
> 
> Hi.
> 
> See the example at
> http://maven.apache.org/plugins/maven-compiler-
> plugin/examples/compile-using-different-jdk.html
> 
> Greetings
> Martin

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