You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ole Ersoy <ol...@yahoo.com> on 2006/02/12 02:22:18 UTC

Generics Error

Hey Everybody,

I'm running jdk 1.5, however when compiling maven
tells me the following:

Authenticator.java:[8,25] generics are not supported
in -source 1.3
(try -source 1.5 to enable generics)
                Hashtable<String, String> env = new
Hashtable<String, String>();

So I tried running install 3 different ways with no
success:
mvn -source 1.5 install
mvn -source=1.5 install
mvn -Dsource=1.5 install

Any ideas on how to fix this?

Thanks,
- Ole

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Generics Error

Posted by Wendy Smoak <ws...@gmail.com>.
On 2/11/06, Ole Ersoy <ol...@yahoo.com> wrote:

> I'm running jdk 1.5, however when compiling maven
> tells me the following:
>
> Authenticator.java:[8,25] generics are not supported
> in -source 1.3
> (try -source 1.5 to enable generics)
>                 Hashtable<String, String> env = new
> Hashtable<String, String>();
>
> So I tried running install 3 different ways with no
> success:
> mvn -source 1.5 install
> mvn -source=1.5 install
> mvn -Dsource=1.5 install
>
> Any ideas on how to fix this?

You need to configure the compiler plugin.  The example shows how to
configure it for 1.5:
  http://maven.apache.org/plugins/maven-compiler-plugin/howto.html

HTH,
--
Wendy

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