Try adding the compiler plugin?

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin> 

-----Original Message-----
From: get_it_done [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2008 2:50 PM
To: [email protected]
Subject: try -source 1.5 to enable annotations


Hi folks,
       My Env:
Spring 2.5
JDK 1.5
Ecllipse 3.3
Junit 4.4
Maven 2.0

     I have maven plugin integrated in eclipse IDE. When I try to run
Maven Test to test all the test cases, it throws up 

.....
Compilation failure
.......
annotations are not supported in -source 1.3 (try -source 1.5 to enable
annotations)
          @Autowired

any suggestions? 

--
View this message in context:
http://www.nabble.com/try--source-1.5-to-enable-annotations-tp18119281p1
8119281.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to