Yes, it was just a faute of typing, the executable argument must be 
 
<executable>C:\jdk1.2.2\bin\javac</executable>
 
By the way, even manven 2 requires java 1.4, in the official doc say that "You 
can use any JDK to compile, not only the one used to run Maven." and there's a 
parameter: "compilerArgument" which is "Unformatted argument string to be 
passed to the compiler if fork is set to true. This is because the list of 
valid arguments passed to a Java compiler varies based on the compiler version."

I think that Maven 2 tries to use all the arguments of its jdk by defaut even 
when I want to use an external jdk.

Thanks for all your helps.

>From [EMAIL PROTECTED]
Subject RE: [M2]How to compile with JDK 1.2
DateTue, 09 May 2006 16:23:55 GMT 

The executable must be linked to javac.exe. 
I do not try but the "official help" says: 
 
 
google search -> maven-compiler-plugin 
result: http://maven.apache.org/plugins/maven-compiler-plugin/howto.html 
 
> -----Original Message----- 
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf  
> Of Carlos 
> Sanchez 
> Sent: dinsdag 9 mei 2006 18:17 
> To: Maven Users List 
> Subject: Re: [M2]How to compile with JDK 1.2 
>  
>  
> Can you file a jira issue at http://jira.codehaus.org/browse/PLX under 
> plexus-compiler component? 
>  
> I'm sure nobody tried 1.2 JDK 
>  
> On 5/9/06, Roald Bankras  wrote: 
> > 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 
> > Software Engineer 
> > JTeam b.v. 
> > 
> > -----Original Message----- 
> > From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, May 09, 2006 11:06 AM 
> > To: users@maven.apache.org 
> > Subject: [M2]How to compile with JDK 1.2 
> > 
> > Hi everybody, 
> > 
> > I want to compile my source files with an external jdk1.2 :  
> I've tried this: 
> > 
> >  
> >      
> >        
> >         org.apache.maven.plugins 
> >         maven-compiler-plugin 
> >          
> >           true 
> >           C:\jdk1.2.2\bin 
> >           1.2 
> >          
> >        
> >      
> >    
> > 
> > 
> > but it doesn't work 'cause javac 1.2 can't handle the  
> "source" argument meanwhile maven add automatically this  
> argument when executing the compilation. 
> > 
> > Thanks in advance. 
> > 
> > 
> > 
> > -- 
> > No virus found in this incoming message. 
> > Checked by AVG Free Edition. 
> > Version: 7.1.392 / Virus Database: 268.5.5/334 - Release  
> Date: 5/8/2006 
> > 
> > 
> > -- 
> > No virus found in this outgoing message. 
> > Checked by AVG Free Edition. 
> > Version: 7.1.392 / Virus Database: 268.5.5/334 - Release  
> Date: 5/8/2006 
> > 
> > 
> >  
> --------------------------------------------------------------------- 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > 
> > 
>  
>  
> -- 
> I could give you my word as a Spaniard. 
> No good. I've known too many Spaniards. 
>                              -- The Princess Bride 
>  
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
>  
 
 
------------------------------------------------------------------------------------------------------------
 
This message is intended for the addressee or its representative only.  
Any form of unauthorized use, publication, reproduction, copying or  
disclosure of the content of this e-mail is not permitted. If you are  
not the intended recipient of this e-mail message and its contents,  
please notify the sender immediately and delete this message and  
all its attachments subsequently. 
 
 
--------------------------------------------------------------------- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to