Use Source 7 Or Higher To Enable Diamond Operator Netbeans For Mac

Error: diamond operator is not supported in -source 1.6 private final Map adaptableValues = new HashMap; ^ (use -source 7 or higher to enable diamond operator). I'm having some issues building the project using mvn package. First i was getting this error: ERROR Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (defau.


In this post we will solve
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Maven: Compilation failure: Compilation failure:
diamond operatorisnot supported in -source 1.5
(use -source 7or higher to enable diamond operator)
Diamond

Use Source 7 Or Higher To Enable Diamond Operator Netbeans For Mac Free

<build> … </build>
Operator
in pom.xml-

Use Source 7 Or Higher To Enable Diamond Operator Netbeans For Mac Windows 10

<projectxmlns='http://maven.apache.org/POM/4.0.0'xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd'>
<groupId>a</groupId>
<version>0.0.1-SNAPSHOT</version>



<dependency>
<artifactId>commons-lang</artifactId>
</dependency>
</dependencies>
<build>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<target>1.8</target>
</plugin>
</build>
</project>