
Verify by running the project.There is no such possibility to define eclipse and java compiler for different modules in on single project. The error should be fixed now.Īfter changing the settings and adding the properties information to the pom.xml file. After the changes specify the JDK version in the POM.xml Maven build file.įor example, specify the JDK 14 to the Maven pom.xml. (Configure Workspace settings)įor example, to specify JDK 8 we can add the properties like the below to the POM.xml file: 1.8 1.8 JDK 14Ĭhange the Ja va compiler and the project build path. Maven POM.xmlįollow the below steps to avoid this error in the Maven project, Right-click Project properties > Java Compiler.Ĭhange the JDK compliance parameters from 1.5 -> 1.7 or above.Ĭlick on the Execution Environments link and select the latest or suitable JDK above JDK 1.7Ĭlick on Apply and Close button. Update the project build path with the latest library settings. Identify the JDK version installed on your machine or the version the IDE workspace uses. The fix for the problem is to use the latest Java environment for the project that is above JDK 7 or Later. Failed to execute goal :maven-compiler-plugin:ģ.1:testCompile (default-testCompile) on project AppiumProject:Ĭompilation failure: Compilation failure: We can specify these properties in Maven pom.xml file. In this case, we need to specify the source and target version to the Maven compiler. The error (Source option 5 is no longer supported) is common when we create a Maven project from the old archetypes.


In this post, let’s see the steps involved to fix the error in the Maven project.

When we create Maven projects using artifacts and try to run them, we sometimes get the following error.
