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 Dugger <ma...@realtybaron.com> on 2005/12/21 20:41:17 UTC

javac: invalid flag: -source

I'm using m2 v2.0 and attempting to compile 1.3.1 source with a 1.4.x or
1.5.x JDK.  Error msg: "javac: invalid flag: -source".  I've found
several references to this on mailing list, but no definitive solution
yet.  

My current compiler config:

<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-compiler-plugin</artifactId>
 <configuration>
   <executable>C:\Java\jdk1.3.1_15\bin\javac</executable>
   <fork>true</fork>
   <verbose>true</verbose>
   <includes>
   ...
   </includes>
 </configuration>
</plugin>

Any insight is much appreciated.

Marc Dugger
marc@realtybaron.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6% real estate sales commission? Not likely.
Learn why at http://tinyurl.com/dvkbu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





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


Re: javac: invalid flag: -source [SOLUTION]

Posted by Marc Dugger <ma...@realtybaron.com>.
Yes, it did :)

My resulting compiler config:

<configuration>
  <verbose>true</verbose>
  <fork>true</fork>
  <executable>C:\Java\jdk1.3.1_15\bin\javac</executable>
  <compilerVersion>1.3</compilerVersion>
  <includes>
   ...  
  </includes>
</configuration>

Thanks!

Marc Dugger
marc@realtybaron.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6% real estate sales commission? Not likely.
Learn why at http://tinyurl.com/dvkbu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Quoting Brett Porter <br...@gmail.com>:

> Does:
> 
> <compilerVersion>1.3</compilerVersion>
> 
> help?
> 
> - Brett
> 
> On 12/22/05, Marc Dugger <ma...@realtybaron.com> wrote:
> > I am executing M2 using 1.5.x, but attempting to fork a 1.3.1
> process to
> > do the actual compile.
> >
> >
> > Quoting Tim Kettler <ti...@tk-ai.de>:
> >
> > > Hi,
> > >
> > > you write that you want to compile with a JDK 1.4.x or 1.5.x but
> in
> > > the
> > > plugin configuration you give a path to a JDX 1.3.x.
> > >
> > > A quick look at
> > > http://java.sun.com/j2se/1.3/docs/tooldocs/win32/javac.html does
> not
> > >
> > > mention a '-source' option of the javac of JDK 1.3, hence the
> error.
> > >
> > > -Tim
> > >
> > > Marc Dugger schrieb:
> > > > I'm using m2 v2.0 and attempting to compile 1.3.1 source with
> a
> > > 1.4.x or
> > > > 1.5.x JDK.  Error msg: "javac: invalid flag: -source".  I've
> found
> > > > several references to this on mailing list, but no definitive
> > > solution
> > > > yet.
> > > >
> > > > My current compiler config:
> > > >
> > > > <plugin>
> > > >  <groupId>org.apache.maven.plugins</groupId>
> > > >  <artifactId>maven-compiler-plugin</artifactId>
> > > >  <configuration>
> > > >    <executable>C:\Java\jdk1.3.1_15\bin\javac</executable>
> > > >    <fork>true</fork>
> > > >    <verbose>true</verbose>
> > > >    <includes>
> > > >    ...
> > > >    </includes>
> > > >  </configuration>
> > > > </plugin>
> > > >
> > > > Any insight is much appreciated.
> > > >
> > > > Marc Dugger
> > > > marc@realtybaron.com
> > > >
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > > 6% real estate sales commission? Not likely.
> > > > Learn why at http://tinyurl.com/dvkbu
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >

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


Re: javac: invalid flag: -source

Posted by Brett Porter <br...@gmail.com>.
Does:

<compilerVersion>1.3</compilerVersion>

help?

- Brett

On 12/22/05, Marc Dugger <ma...@realtybaron.com> wrote:
> I am executing M2 using 1.5.x, but attempting to fork a 1.3.1 process to
> do the actual compile.
>
>
> Quoting Tim Kettler <ti...@tk-ai.de>:
>
> > Hi,
> >
> > you write that you want to compile with a JDK 1.4.x or 1.5.x but in
> > the
> > plugin configuration you give a path to a JDX 1.3.x.
> >
> > A quick look at
> > http://java.sun.com/j2se/1.3/docs/tooldocs/win32/javac.html does not
> >
> > mention a '-source' option of the javac of JDK 1.3, hence the error.
> >
> > -Tim
> >
> > Marc Dugger schrieb:
> > > I'm using m2 v2.0 and attempting to compile 1.3.1 source with a
> > 1.4.x or
> > > 1.5.x JDK.  Error msg: "javac: invalid flag: -source".  I've found
> > > several references to this on mailing list, but no definitive
> > solution
> > > yet.
> > >
> > > My current compiler config:
> > >
> > > <plugin>
> > >  <groupId>org.apache.maven.plugins</groupId>
> > >  <artifactId>maven-compiler-plugin</artifactId>
> > >  <configuration>
> > >    <executable>C:\Java\jdk1.3.1_15\bin\javac</executable>
> > >    <fork>true</fork>
> > >    <verbose>true</verbose>
> > >    <includes>
> > >    ...
> > >    </includes>
> > >  </configuration>
> > > </plugin>
> > >
> > > Any insight is much appreciated.
> > >
> > > Marc Dugger
> > > marc@realtybaron.com
> > >
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > 6% real estate sales commission? Not likely.
> > > Learn why at http://tinyurl.com/dvkbu
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: javac: invalid flag: -source

Posted by Marc Dugger <ma...@realtybaron.com>.
I am executing M2 using 1.5.x, but attempting to fork a 1.3.1 process to
do the actual compile.  


Quoting Tim Kettler <ti...@tk-ai.de>:

> Hi,
> 
> you write that you want to compile with a JDK 1.4.x or 1.5.x but in
> the 
> plugin configuration you give a path to a JDX 1.3.x.
> 
> A quick look at 
> http://java.sun.com/j2se/1.3/docs/tooldocs/win32/javac.html does not
> 
> mention a '-source' option of the javac of JDK 1.3, hence the error.
> 
> -Tim
> 
> Marc Dugger schrieb:
> > I'm using m2 v2.0 and attempting to compile 1.3.1 source with a
> 1.4.x or
> > 1.5.x JDK.  Error msg: "javac: invalid flag: -source".  I've found
> > several references to this on mailing list, but no definitive
> solution
> > yet.  
> > 
> > My current compiler config:
> > 
> > <plugin>
> >  <groupId>org.apache.maven.plugins</groupId>
> >  <artifactId>maven-compiler-plugin</artifactId>
> >  <configuration>
> >    <executable>C:\Java\jdk1.3.1_15\bin\javac</executable>
> >    <fork>true</fork>
> >    <verbose>true</verbose>
> >    <includes>
> >    ...
> >    </includes>
> >  </configuration>
> > </plugin>
> > 
> > Any insight is much appreciated.
> > 
> > Marc Dugger
> > marc@realtybaron.com
> > 
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > 6% real estate sales commission? Not likely.
> > Learn why at http://tinyurl.com/dvkbu
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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


Re: javac: invalid flag: -source

Posted by Tim Kettler <ti...@tk-ai.de>.
Hi,

you write that you want to compile with a JDK 1.4.x or 1.5.x but in the 
plugin configuration you give a path to a JDX 1.3.x.

A quick look at 
http://java.sun.com/j2se/1.3/docs/tooldocs/win32/javac.html does not 
mention a '-source' option of the javac of JDK 1.3, hence the error.

-Tim

Marc Dugger schrieb:
> I'm using m2 v2.0 and attempting to compile 1.3.1 source with a 1.4.x or
> 1.5.x JDK.  Error msg: "javac: invalid flag: -source".  I've found
> several references to this on mailing list, but no definitive solution
> yet.  
> 
> My current compiler config:
> 
> <plugin>
>  <groupId>org.apache.maven.plugins</groupId>
>  <artifactId>maven-compiler-plugin</artifactId>
>  <configuration>
>    <executable>C:\Java\jdk1.3.1_15\bin\javac</executable>
>    <fork>true</fork>
>    <verbose>true</verbose>
>    <includes>
>    ...
>    </includes>
>  </configuration>
> </plugin>
> 
> Any insight is much appreciated.
> 
> Marc Dugger
> marc@realtybaron.com
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 6% real estate sales commission? Not likely.
> Learn why at http://tinyurl.com/dvkbu
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


-- 
Freundliche Grüße / Best Regards

Tim Kettler
_________________________________________
Lieterweg 24
58285 Gevelsberg
Tel.: +49 2332 149814
Fax: +49 2332 149814
e-mail: tim.kettler@tk-ai.de
Internet :  http://www.tk-ai.de


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