Question

I am able to create the maven project from command line but not able to create project from eclipse.I have configured same maven as external in eclipse. When i am trying to create maven project , its giving me below error. How to fix the below error.

My eclipse version is kepler

 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

Please advise.

Was it helpful?

Solution

Try this:

1: Delete .M2 Content 2: Set the Proxy configuration in settings.xml

<proxies>
<proxy>
  <active>true</active>
  <protocol>http</protocol>
  <host>proxy.com</host>
  <port>xxxx</port>
  <nonProxyHosts>local.net</nonProxyHosts>
</proxy>
</proxies>

Be careful! don't put any username and passowrd if proxy is without auth

3: Close Eclipse..and reopen

4: clean and update project configuration

5: verify the java buld path used for the project configuration

6: Try use the Maven embedded in eclipse just for a test, to see if the problem is the external Maven installation corrupted

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top