The executable must be linked to javac.exe.
I do not try but the "official help" says:

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <fork>true</fork>
          <compilerVersion>1.3</compilerVersion>
          <executable>C:/Program
Files/Java/jdk1.3.1_18/bin/javac</executable>
          <!--
          A portable way using environment variables
          <executable>${JAVA_1_3_HOME}/bin/javac</executable>
          -->
        </configuration>
      </plugin>
    </plugins>
  </build>
  ...
</project>

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 <[EMAIL PROTECTED]> 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: [email protected]
> > 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:
> >
> > <build>
> >     <plugins>
> >       <plugin>
> >         <groupId>org.apache.maven.plugins</groupId>
> >         <artifactId>maven-compiler-plugin</artifactId>
> >         <configuration>
> >           <fork>true</fork>
> >           <executable>C:\jdk1.2.2\bin</executable>
> >           <compilerVersion>1.2</compilerVersion>
> >         </configuration>
> >       </plugin>
> >     </plugins>
> >   </build>
> >
> >
> > 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]

Reply via email to