The Answer to Life, the Universe, and Everything

Sunday, December 09, 2007

maven2 java version

You might need to specify the compile java version by using generics etc in pom.xml file.

<project>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
</project>

No comments: