I got this huge error message when I setup my Maven Java Project and looked at the pom.xml, I got the below huge error trace,
Multiple annotations found at this line:
CoreException: Could not get the value for parameter compilerId for plugin execution default-compile:
PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its
dependencies could not be resolved:
Failed to collect dependencies at
org.apache.maven.plugins:maven-compiler-plugin:jar:3.1 ->
org.apache.maven:maven-toolchain:jar:1.0 ->
org.apache.maven:maven-core:jar:2.0.6 ->
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4: ArtifactDescriptorException:
Failed to read artifact descriptor for
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:
ArtifactResolutionException:
Failure to transfer org.codehaus.plexus:plexus-interactivity-api:pom:1.0-alpha-4
from https://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has
elapsed or updates are forced. Original error: Could not transfer artifact
org.codehaus.plexus:plexus-interactivity-api:pom:1.0-alpha-4 from/to central
(https://repo.maven.apache.org/maven2): The operation was cancelled.
Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (execution: default-testCompile, phase: test-compile)
CoreException: Could not get the value for parameter compilerId for
plugin execution default-testCompile:
PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1
or one of its dependencies could not be resolved: The following artifacts could not
be resolved: org.apache.maven:maven-plugin-api:jar:2.0.9, org.apache.maven:maven-artifact:jar:2.0.9, org.codehaus.plexus:plexus-utils:jar:1.5.1, org.apache.maven:maven-core:jar:2.0.9,
org.apache.maven:maven-settings:jar:2.0.9, org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9,
org.apache.maven:maven-profile:jar:2.0.9, org.apache.maven:maven-model:jar:2.0.9,
org.apache.maven:maven-repository-metadata:jar:2.0.9, org.apache.maven:maven-error-diagnostics:jar:2.0.9,
org.apache.maven:maven-project:jar:2.0.9, org.apache.maven:maven-plugin-registry:jar:2.0.9, org.apache.maven:maven-
plugin-descriptor:jar:2.0.9, org.apache.maven:maven-artifact-manager:jar:2.0.9,
org.apache.maven:maven-monitor:jar:2.0.9, org.apache.maven:maven-toolchain:jar:1.0, org.apache.maven.shared:maven-shared-
utils:jar:0.1, org.apache.maven.shared:maven-shared-incremental:jar:1.1,
org.codehaus.plexus:plexus-compiler-api:jar:2.2, org.codehaus.plexus:plexus-compiler-manager:jar:2.2,
org.codehaus.plexus:plexus-compiler-javac:jar:2.2, org.codehaus.plexus:plexus-container-default:jar:1.5.5:
Failure to transfer org.apache.maven:maven-plugin-api:jar:2.0.9 from https://repo.maven.apache.org/maven2
was cached in the local repository, resolution will not be reattempted until the update interval of central
has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-plugin-api:jar:2.0.9
from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(execution: default-compile, phase: compile)
- Go to Run -> Run Configuration,
- Double click on Maven Build,
- Under new configuration type clean build under Goal,
- Run the new configuration.
- All missing repo's will get downloaded from the central (nexus) repository and the error should go away!
You can also try Right-click your pom.xml -> Run as -> MAVEN BUILD
If that does not work then - Right click on pom.xml -> Maven -> Update Project... -> Check Force update of Snapshot\Releases.
More Posts related to Java,
- How to get Java Thread name Example [Program]
- Java 8: Get First and Last Date of the Week for Given Date
- Convert String to int in Java
- How to Get List of All Country Codes in Java Using Locale Class
- Convert Multidimensional Array toString In Java
- [Fix] java: incompatible types: incompatible parameter types in lambda expression error
- Display Era details (AD BC) in Java Date using SimpleDateFormat
- Create a Zip file using Java Code programmatically
- [Fix] java.net.MalformedURLException: unknown protocol
- [fix] Java JDBC ConnectException: Connection refused
- Read Json File and Convert to Java Object using Jackson
- list of jars required for hibernate 4.x.x
- Simple Struts 2 Tutorial in eclipse with tomcat 7 server
- Java: The value of the local variable string is not used
- [fix] URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs) IntelliJ
- Java 8+ get Day of the Week Examples with LocalDateTime, DateTime, ZonalDateTime and Instant classes
- Run SQL Script file using Java JDBC Code Example
- Remove Trailing zeros BigDecimal Java
- Java JDBC IN Clause Example with PreparedStatement MySQL
- Convert Java List to Json String using Jackson
- Java 8 foreach loop code examples
- error: file not found: HelloWorld.java
- IntelliJ Keyboard Shortcut to remove unused imports [Java]
- Exception in thread main java.lang.NoClassDefFoundError: package javaClass
- Struts 2 Hello World Example in Eclipse
More Posts:
- Move Copy Migrate SharePoint OneDrive files folders to different site collection location - SharePoint
- import servlet API to eclipse project (javax.servlet cannot be resolved error) - Java
- [Fix] Connect to Minecraft Remote Connect URL via https //aka.ms/remoteconnect - Microsoft
- Android Studio Error: Default Activity not found - Android-Studio
- [Solution] fatal: not a git repository (or any of the parent directories): .git - Git
- How to Configure GitHub with Eclipse IDE in 2023 - Eclipse
- Calculate Volume of Ellipsoid - C-Program
- Validate email address in Python using regular expression (regex) - Python