• Register
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)
6 5 3
6,930 points

Please log in or register to answer this question.

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"

9 7 4
38,600 points

Related questions

0 votes
1 answer 8 views
Problem: I am trying to run mvn clean compile test for my automated tests and getting the maven compilation error message. I am posting the error message and my pom file here. I am using cucumber framework and the java version is 1.8.0_144. PS:I am able to run the test manually through my IDE without any error. Can someone guide me on why this is happening?
asked Apr 26 Supti 13k points
0 votes
1 answer 10 views
Problem: I am getting this error > Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test
asked Apr 26 ummeshani 10.8k points
0 votes
1 answer 7 views
Problem: I am having hard time to solve the problem. Help is much appreciated.
asked Apr 2 salim1 60.6k points
0 votes
1 answer 11 views
Problem: I want to build a web app using spring boot and react js (followed the tutorial here). In pom.xml I added: <plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.0.5</version> <executions> <execution> <id>Copy frontend production build to resources</ ... and Yarn) on project ema: The plugin com.github.eirslett:frontend-maven-plugin:1.2 requires Maven version 3.1.0 -> [Help 1]
asked Apr 24 anika11 32.2k points
1 vote
1 answer 6 views
Problem : Please help to get rid of this > Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved.
asked Apr 24 Abik Dey 4k points
0 votes
1 answer 60 views
0 votes
1 answer 25 views
Problem: I am stuck now .. need some suggestions .. please help me .. package org apache log4j does not exist
asked Apr 7 Ifra 37.2k points
0 votes
1 answer 6 views
problem: I keep getting the following errors of build-helper-maven-plugin ?
asked Apr 6 ashik 14.6k points
0 votes
1 answer 236 views
Problem: I am creating my android application with the help of android studio. I have also added the required library to my project which was downloaded from the authentic source. When I was trying to add this library to the project created my me then it was showing ... 2, 0) Plugin with id 'com.github.dcendents.android-maven' not found." Please guide me in fixing above android app related error.
asked Aug 1, 2020 Raphael Pacheco 4.9k points