How to Install Maven manually:
I got this error problem while updating Maven Projects so this works for me.
[ERROR] 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: Failure to find org.apache.maven.plugins:maven-resources-plugin:pom:2.5 in http://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 -> [Help 1]
...
Had maven 3.0.5, eclipse 4.15.0 with JDK 1.8 installed. Computer sitting on internal network with proxy to the internet. Here’s what I did.
What is worked for me:
First download & install the missing plugin manually and add missing plugin: I visited to http://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin/2.5
1 Downloaded the maven-resources-plugin-2.5.jar and maven-resources-plugin-2.5.pom .
2.Copied the downloader folder directly into the maven repository of my computer into the correct folder ( ~/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.5) and reran ‘mvn compile’. This solved my problem.
3. Right Click on main project in Eclipse and click on Maven and Update Projects.
4.Click on Force updates of Snapshots/Releases.
5. Click on Ok button.
It will solves the problem of Pom.xml file.
Comments
Post a Comment