Wednesday, 28 September 2011

Maven compiler level to java 6

This took me more than 3 mins googling so I thought I'd post it to save some time if I'll need it again.
<project>
 .....
 <build>
  <plugins>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
     <source>1.6</source>
     <target>1.6</target>
    </configuration>
   </plugin>
  </plugins>
 </build>
</project>

No comments: