Hobione's Weblog

Living & Breathing in Web 2.0 Era

MyEclipse Maven Error: Generics are not supported in -source 1.3

Problem: I got this error:

C:\WorkspaceMyEclipse\HRTrainingPersistence\src\main\java\gov\faa\amc\nas\hrtraining\persistence\TrainingClass.java:[45,2] annotations are not supported in -source 1.3</pre>
(use -source 5 or higher to enable annotations)

Solution: Maven’s default java complier is 1.3 (very weird).  I had to add a plugin tag for Java 1.5,  right after <dependencies> tag.

   <!-- For annotations and other Java5 stuff -->

References: Maven Documentation Home

Q: How to setup Maven JDK Home?
Maven JDK Home setup

Reference: How to fix Maven ‘Add JDK’ warning?

March 4, 2009 - Posted by | Maven


  1. […] Hobione’s Blog entry on the same […]

    Pingback by Maven Error: generics are not supported in source 1.3 « Draptik's Blog | June 22, 2009 | Reply

  2. Thanks…

    Comment by Mike | March 27, 2011 | Reply

  3. Thanks

    Comment by Mike | May 16, 2012 | Reply

  4. Thanks a lot for posting this

    Comment by Vidya | October 22, 2012 | Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: