You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sp...@yahoo.fr on 2007/05/04 18:12:25 UTC

Re : Maven 2.0.6 using JDK 1.3

If I'm working on a project with the jdk 1.5 (using maven) and during my development period, I want to make a rapid update to an old jdk 1.3 based project from the svn including compiling ==> re-jaring and so on...

do I have to reinstall my old jdk for a 30min dev ?

-1

Nawfel BERAICH
www.ilem.ma

----- Message d'origine ----
De : Dan Tran <da...@gmail.com>
À : Maven Users List <us...@maven.apache.org>
Envoyé le : Vendredi, 4 Mai 2007, 15h52mn 07s
Objet : Re: Maven 2.0.6 using JDK 1.3

I totally agree with Paul here, any one else?

On 5/4/07, Paul Gier <pg...@redhat.com> wrote:
>
> It seems like a better default behavior for the compiler plugin would be
> to use the current jvm version.
> If I'm running maven with jdk1.5 I would expect the compiler plugin to
> default to source level 1.5.
> Is there a reason that it can't work like that?
>
> Wayne Fay wrote:
> > This is one of the most common questions on this list...
> >
> > It has been answered repeatedly -- check the archives at Nabble.
> >
> > Also it is very well documented on the Maven website -- both in the
> > FAQ and in the Maven Compiler plugin docs.
> >
> > Google also has numerous links when you search for "maven generics".
> >
> > Wayne
> >
> > On 5/4/07, David Smith <Da...@transplace.com> wrote:
> >> I'm having a problem compiling my project with maven 2.0.6.  Maven is
> >> using JDK 1.3 to compile the java files that contain generics.  The
> >> build fails with an error stating that 1.3 does not support generics.
> >>
> >>
> >>
> >> How do I switch JDKs so that maven will use 1.5 instead of 1.3?  My
> >> classpath and path variables both point to 1.5.
> >>
> >>
> >>
> >> ---
> >>
> >> [INFO] Building Unnamed - com.javaworld.hotels:HotelDatabase:jar:0.0.1
> >>
> >> [INFO]    task-segment: [package]
> >>
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >> -
> >>
> >> ---
> >>
> >> [INFO] [resources:resources]
> >>
> >> [INFO] Using default encoding to copy filtered resources.
> >>
> >> [INFO] [compiler:compile]
> >>
> >> Compiling 2 source files to
> >> C:\workspace.3.2.2\HotelDatabase\target\classes
> >>
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >>
> >> [ERROR] BUILD FAILURE
> >>
> >> [INFO]
> >>
> ------------------------------------------------------------------------
> >>
> >> [INFO] Compilation failure
> >>
> >>
> >>
> >>
> C:\workspace.3.2.2\HotelDatabase\src\main\java\com\javaworld\hotels\mode
> >> l\HotelM
> >>
> >> odel.java:[22,19] generics are not supported in -source 1.3
> >>
> >> (try -source 1.5 to enable generics)
> >>
> >>         public List<Hotel> findHotelsByCity(String city){
> >>
> >>
> >>
> >>
> C:\workspace.3.2.2\HotelDatabase\src\main\java\com\javaworld\hotels\mode
> >> l\HotelM
> >>
> >> odel.java:[24,32] for-each loops are not supported in -source 1.3
> >>
> >> (try -source 1.5 to enable for-each loops)
> >>
> >>                 for(Hotel hotel : hotels){
> >>
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > 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
>
>









      
	
		
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com