Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

I got the following error message when I tried to create a Maven project in eclipse. Many have posted about proxies in settings.xml file and also flush the .m2 folder forcing it to download a new one. None of this is working for me. I'm at work, with proxy settings active in the internet options.

The error message:

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 

POM.XML:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">   <modelVersion>4.0.0</modelVersion>   <groupId>com.blahhhhhhhhhhhhhhhhh</groupId>   <artifactId>HelloRESTEasy</artifactId>   <version>0.0.1-SNAPSHOT</version> </project> 



settings.xml:

  <proxies>     <proxy>       <id>optional</id>       <active>true</active>       <protocol>http</protocol>       <username>proxyuser</username>       <password>proxypass</password>       <host>proxyserver.company.com</host>       <port>8080</port>       <nonProxyHosts>local.net|some.host.com</nonProxyHosts>     </proxy>   </proxies> 
like image 869
JustinBieber Avatar asked Feb 20 '14 13:02

JustinBieber


People also ask

What is org Apache Maven plugins?

org.apache.maven.plugins » maven-javadoc-pluginApache. The Apache Maven Javadoc Plugin is a plugin that uses the javadoc tool for generating javadocs for the specified project. Last Release on Aug 13, 2022.

What is Maven war plugin?

The WAR Plugin is responsible for collecting all artifact dependencies, classes and resources of the web application and packaging them into a web application archive.


1 Answers

Try cleaning the local .m2/repository/ folder manually using rm -rf and then re build the project. Worked for me after trying every possible other alternative(reinstalling eclipse, pointing to the correct maven version in eclipse, proxy settings etc)

like image 120
Abhiroop Sarkar Avatar answered Sep 19 '22 15:09

Abhiroop Sarkar