close

[Solved] Another Maven “Source option 6 is no longer supported. Use 7 or later.”

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Another Maven “Source option 6 is no longer supported. Use 7 or later.” in java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Another Maven “Source option 6 is no longer supported. Use 7 or later.” Error Occurs?

Today I get the following error Another Maven “Source option 6 is no longer supported. Use 7 or later.” in java.

How To Solve Another Maven “Source option 6 is no longer supported. Use 7 or later.” Error ?

  1. How To Solve Another Maven “Source option 6 is no longer supported. Use 7 or later.” Error ?

    To Solve Another Maven “Source option 6 is no longer supported. Use 7 or later.” Error I corrected this problem by matching the jdk between my IDE and the pom.xml file.

  2. Another Maven “Source option 6 is no longer supported. Use 7 or later.”

    To Solve Another Maven “Source option 6 is no longer supported. Use 7 or later.” Error I corrected this problem by matching the jdk between my IDE and the pom.xml file.

Solution 1

Actually, I too faced the above error message, after adding this to property file, Error got resolved. 🙂

property need to be added in pom.xml

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

Solution 2

I corrected this problem by matching the jdk between my IDE and the pom.xml file.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment