I'm using Java 7 syntax in a project, but when I go to mvn clean install maven is telling me:
[ERROR] /Users/mosawi/Perforce/src/main/java/com/generalatomics/compilers/Engine.java:[47,45] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
I'm pretty sure my project is Java 7, and my java build path is set to Java 7
EDIT:
Here is the relevant info concerning my pom.xml ...etc
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.8</version>
<configuration>
<dependencyLocationsEnabled>true</dependencyLocationsEnabled>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<formats>
<format>html</format>
<format>xml</format>
</formats>
</configuration>
</plugin>
</plugins>
</reporting>
...etc.