CoreException: Failed to get the value of the compilerId parameter to execute the default plugin: PluginResolutionException

Every time I create a simple maven project, I get below the error. Please let me know what might solve. I tried many ways to resolve it, but could not. what could be the reason?

Is it due to an eclipse or a repository or some kind of certificate issue?

CoreException: could not get the value of the compilerId parameter to execute the default plugin: PluginResolutionException: plugin org.apache.maven.plugins: maven- Compiler-plugin: 3.1

enter image description here

+12
source share
7 answers

I solved this using the Eclipse completion function “Maven Project Update” (ALT + F5) to check the “Force Snapshot / Release Update” option.

+35
source

Yes, when we check "Force Snapshot / Release Updates" to update the maven project, the error is fixed and it works fine.

  • Press ALT + F5 to open the "Update Maven Project" pane, or right-click your project → Maven → Update Project.
  • Check the box "Force snapshot / release updates"
+3
source
  • Check for an update to the Maven Project function (ALT + F5);
  • Click the Force snapshot / release update option.

This should work just fine.

+2
source

Yes, if you read the error data, it says that the plugin is cached and not pulled from / to the remote repository. Therefore, we must force update using the Eclipse function “Update Maven Project” and check the “Force update of snapshots / releases” parameter.

+1
source

The best approach is to go to the working directory through the command line where pom.xml is available and run the command mvn clean package -U

+1
source

If the same project opens in another eclipse or in any other IDE in parallel, and when I try to build the same project, I get the same error. After closing and restoring the same, it is resolved

0
source

The best approach is to go to the working directory through the command line where the pom.xml file was available and run the mvn clean package -U command

This method works like magic in any maven issues.

0
source

All Articles