maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Redmond" <eric.redm...@gmail.com>
Subject Re: [discuss] Java 5
Date Fri, 07 Jul 2006 15:11:29 GMT
I remember a while back a discussion about accepting licenses as part of
Maven's downloading artifacts with non-apache constraints (such as sun
jars). Has anything come of this in 2.1? That might be the answer right
there.

Eric

On 7/7/06, Carlos Sanchez <carlos@apache.org> wrote:
>
> I think we should add the rt.jar and tools.jar to the repo as any
> other dependency, to allow building with 1.5 against 1.4 rt.jar. Of
> course we'll hit again the Sun policy about redistribution and people
> would have to put it by hand in their repos.
>
> On 7/7/06, Kenney Westerhof <kenney@apache.org> wrote:
> > On Fri, 7 Jul 2006, [ISO-8859-1] Trygve Laugstøl wrote:
> >
> > > Uhm, no. All you have to do to be 100% that it works in a 1.4
> > > environment is to fork the compiler. AFAIK the Eclipse compiler should
> > > also be able to build 1.4 code safely against the 1.4 rt.jar
> > >
> > > Still this really won't change the current situation as you have the
> > > same issue today if you build against 1.2 or 1.3. Or 1.4 with a 1.5JDK
> > > which I'm sure many people do.
> >
> > The -target and -source only checks the current sources, unfortunately.
> >
> > The compiler should ideally also check if the imported classes have the
> > correct format (< 48 or something), and it should check the @since
> > javadoc tags in the API to warn against usage of unavailable
> > classes/methods in the target environment.
> >
> > Frankly, the -target and -source compiler options are quite useless.
> >
> > So yes, the only way to be sure is to fork the correct jdk.
> >
> > But I don't see a problem in having a jdk for maven itself and one for
> the
> > target environment. They should be split up anyway. The only problem is
> > that both the compilers and the plugins need to know this (surefire
> > for instance, or possibly class-enhancing plugins etc.).
> >
> > Seems like a lot of work to get this perfect.
> >
> > Too bad, I really want to switch to Java 5 for Maven (especially for the
> > generics and annotations!)
> >
> > And yes, java 5 plugins work like a charm. Haven't tried enumerations
> yet,
> > though.
> >
> > -- Kenney
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >
>
>
> --
> I could give you my word as a Spaniard.
> No good. I've known too many Spaniards.
>                              -- The Princess Bride
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message