Programmers learn & share
0 votes

Problem :

Getting bellow error because of Maven Compiler Plugin
failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
by (6.9k points)   | 18 views

1 Answer

0 votes

Solution :

I had same problem with maven in the past i had used bellow code to resolve the issue.

Solution for Jdk 9 and 10


and make sure your maven is pointing to JDK 10 or 9. 

mvn -v

Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T14:49:05-05:00)
Maven home: C:\devplay\apache-maven-3.5.3\bin\..
Java version: 10.0.1, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk-10.0.1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

by (36.1k points)  
2,183 questions
2,489 answers
241 users