Maven fails to build
Hi, I am trying to compile on my linux laptop using java-8-openjdk but mvn package
fails.
errors are "diamond operator is not supported in -source 1.5"
Adding the following plugin in pom.xml, after <build> <plugins>
makes the compilation succeed:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>