mvn clean install using java 1.5 or 1.6
Posted
by
bruce
on Stack Overflow
See other posts from Stack Overflow
or by bruce
Published on 2010-11-20T19:41:21Z
Indexed on
2010/12/27
21:54 UTC
Read the original article
Hit count: 175
maven
When I do mvn clean install, I get this error:
annotations are not supported in -source 1.3 (try -source 1.5 to enable annotations)
But where do I put this -source 1.5 command? I tried all permutations with mvn clean install and couldn't get it to work. So I tried putting compilation in my pom, like this:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
But that didn't work either.. What am I missing? Thanks!
© Stack Overflow or respective owner