Hi all,
I use Eclipse and the maven2 plugins to build project in Eclipse. I get an
error as I run "mvn install":
[code]
...
D:\Temp\myproject\src\main\java\com\mycompany\Person.java:[41,1] annotations
are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@XmlAccessorType(XmlAccessType.FIELD)
...
[/code]
And the class Person.java looks as follow:
[code]
...
@XmlAccessorType(XmlAccessType.FIELD) // here is the line 41
@XmlType(name = "Person", propOrder = {
"name"
})
...
public class Person {
@XmlElement(required = true)
protected String name;
...
}
[/code]
My "pom.xml" looks as follow:
[code]
...
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
...
[/code]
Someone can help?
--
View this message in context:
http://www.nabble.com/A-question-about-error-message-%22annotations-are-not-supported-in--source-1.3%22-tp19645391p19645391.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]