Error while creating maven projects in Eclipse Indigo - java

When I am trying to create maven projects by eclipse Indigo I am getting error
" 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"
Please help me with solutions.

Related

Getting this error "Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6" on creating pom file on maven project

I get this error whenever i open pom file or try to update the maven project.
I have just setup maven for Eclipse (neon 3) and i get this error.
"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"
Can anyone help to solve this issue please?
Also in my maven folder ~/user/.m2 folder i do not see the Settings.xml file. Is this something causing the issue?

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2

I am using eclipse mars-2. I want to create a new maven spring boot project in windows. But I'm getting error like
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2
or one of its dependencies could not be resolved: Failed to read artifact
descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2
Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies
could not be resolved: Failed to read artifact
descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2
Can anyone help me resolve this?
You can also do the following steps. Sometimes it helps
Remove/Delete your .m2/repository/ folder
Then run the following command mvn clean install
Then run mvn build
Resource Link: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.3.2 or one of its dependencies could not be resolved
When you install the UDE like ECLIPSE or STS there generates a .m2 folder with settings.xml in it.
After you install the mavan in your system you gonna get a settings.xml in it.
You just let the IDE know that it has to use the meven settings.xml which you can do it by deleting the .m2 file in your users folder, clean and install.
Now you're good to go and enjoy writing your code!!!!

getting error while creating maven project, org.glassfish.jersey.archetypes archetype

I have downloaded a eclipse mars for javaEE developers from site. After installed, I am creating maven project in javaEE perspective. While creating in select an archetype, org.glassfish.jersey.archetypes, which was not registered so I registered by clicking on add archetype by giving groupId,a rtifactId and version. Then clicking on finish I get below error
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war- plugin:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2
Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2
yes I did some search on these error, saying to check maven repository server, which is up, and checking for settings.xml file but how do I do this and settings.xml file is not visible in my .m2 folder.
Please give me some suggestion on this.

Unable to create Maven project in eclipse

Don't know where the problem exactly is.
When trying to create a Java Maven simple project (war, if that means anything) from scratch in Eclipse Helios (also tried Kepler) I get the messages below:
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'j2eeexample'.
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
I'm using:
m2e ver. 1.2.0.20120903-1050 (also tried to use the recent one with Kepler - got the same error)
apache maven ver. 3.0.4 (also tried 3.1.1 with Kepler) with MAVEN_HOME and PATH set.
jdk 1.7.0_45
OS Windows 7 Pro
mvn --version
returns quite a normal result and, I guess, is configured well.
I did everything the same as mr.Arthur Vin did (including preparations from previous parts of a tutorial) in here: http://youtu.be/1cHIZTmN0z8?t=4m51s
But it doesn't work.
The problem is that you don't have maven-resources-plugin and maven tried to download it. If you are under a proxy, configure the proxy in your maven settings.xml file. If you are not under a proxy, try to download maven again and replace your current installation. May be a local issue with your firewall, well you need to check your internet access.

Importing Maven project

After updating all packages and try to re-install the maven plugin, I have the same problem.
I can't import the project !!
The error message is :
"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"
Go to your local repository(.m2 folder) and remove local cache. then try to import your project again.

Categories

Resources