Java compiler level does not match the version of the installed Java project facet. Unknown Faceted Project Problem (Java Version Mismatch)

This error occurs due to default maven compiler plugin which is 1.5.


You have to add maven compiler plugin explicitly is the pom.xml if you are using higher version of JDK.

Right click on pom.xml and run as maven install.The error should be resolved.

Below is the lines to be added in pom.xml

<build>
    <finalName>sampleWeb</finalName>
     
      <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>

  </build>
Java compiler level does not match the version of the installed Java project facet. Unknown Faceted Project Problem (Java Version Mismatch) Java compiler level does not match the version of the installed Java project facet. Unknown Faceted Project Problem (Java Version Mismatch) Reviewed by JavaInstance on 11:26:00 AM Rating: 5

No comments:

Powered by Blogger.