-1

Having this build error

error: diamond operator is not supported in -source 1.5

I want to elevate the source compiler version to 1.7 how to do that in eclipse?

Nassim MOUALEK
  • 4,702
  • 4
  • 25
  • 44

1 Answers1

1

In your pom.xml look for the blurb

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
        <source>1.5</source>
        <target>1.5</target>
    </configuration>
</plugin>

and change accordingly.

Cheers,

Anders R. Bystrup
  • 15,729
  • 10
  • 59
  • 55