linux mcp error: Source option 6 is no longer supported. Use 7 or later.error: Target option 6 is no longer supported. Use 7 or later. code example

Example 1: maven source option 5 is no longer supported use 7 or later

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

Example 2: Error:java: Source option 5 is no longer supported. Use 6 or later.

<properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
</properties>

Tags:

Java Example