Error while creating simple maven project in eclipse(Mars) - maven

I am new to the maven, like to create spring integration using maven in eclipse(mars). But getting below while creating the maven project in my local machine. Kindly help me on this.
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'samplearticact'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

Related

Eclipse Maven build

I have installed Eclipse Kepler and tried to import my code. An error occurred while importing which I don't understand. The error was:
Could not calculate build plan: Plugin
org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its
dependencies could not be resolved: Failed to read artifact descriptor
for org.apache.maven.plugins:maven-resources-plugin:jar:2.5

maven project setup configuration in eclipse

I am new to maven. I tried to setup my first maven project in eclipse IDE, but while creating the project I am getting an error:
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'SpringLoginApplication'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
I am unable to find the reason for this error. Can anybody please help me on this regard?

Maven Build Error when I move my project to another system

I am trying to setup Maven Project in another system which is perfectly working in my system.
But when I try to run in another system. It is throwing below error:
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'spring-security'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Any idea how to resolve this error?
Note: I want to use Maven version 3.3.9 in the new system (I want to upgrade).

failed to create a new maven project

while creating new maven project i am getting an error like this.
Could not get the value for parameter encoding for plugin execution default-resources
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved:
The following artifacts could not be resolved:
org.apache.maven:maven-project:jar:2.0.6,
org.apache.maven:maven-profile:jar:2.0.6,
org.apache.maven:maven-artifact-manager:jar:2.0.6,
org.apache.maven:maven-plugin-registry:jar:2.0.6,
org.apache.maven:maven-core:jar:2.0.6,
org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6,
org.apache.maven.reporting:maven-reporting-api:jar:2.0.6,
org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7,
org.apache.maven:maven-repository-metadata:jar:2.0.6,
org.apache.maven:maven-error-diagnostics:jar:2.0.6,
commons-cli:commons-cli:jar:1.0,
org.apache.maven:maven-plugin-descriptor:jar:2.0.6,
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4,
classworlds:classworlds:jar:1.1,
org.apache.maven:maven-artifact:jar:2.0.6,
org.apache.maven:maven-settings:jar:2.0.6,
org.apache.maven:maven-model:jar:2.0.6,

Unable to build Maven project

Hi I am getting this error while creating a maven project, can any one help please.
Steps-> Create a Java project -> right click and select Configure -> Convert to Maven project
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'Test'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Thanks in advance
Is this in Eclipse? If so check your Maven installation preferences under "Window - Preferences - Maven - Installation". To match the behaviour of running maven from the command line, you should add your external maven installation here.

Resources