While creating the Maven project in Eclipse, If we get the
below error it is due to the missing of the build life cycle mapping for m2e
plugin.
-
Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile
(execution:
default-testCompile, phase: test-compile)
-
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1
or one of its
dependencies
could not be resolved: Failed to read artifact descriptor for
org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1:
Solution:
1. Eclipse
is providing the quick fix for ignoring the goal compile. Right click on the
error and choose quick fix and select “Permanently mark goal compile in pom.xml
as ignored”. It will modify the pom.xml to ignore the
maven-compiler-plugin for the goals. Do it for compile and test Compile
goals.
2. Another
way is to configure the same at the workspace level, go to Windows->
Preferences -> Maven -> Lifecycle Mappings. You can edit and reload the
changed xml file.
Please see the more info on this common problem at the
link: https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html
Please note I have used Eclipse Luna Version and Maven 3.3.3
versions.
The information you have posted is very useful. The sites you have referred was good. Thanks for sharing.. microsoft office ücretsiz
ReplyDelete