How to solve maven 2.6 resource plugin dependency?
Solution 1
Seems your settings.xml
file is missing your .m2 (local maven repo) folder.
When using eclipse navigate to Window -> Preferences -> Maven -> User Settings -> Browse to your settings.xml
and click apply.
Then do maven Update Project.
Solution 2
Right Click on Project go to -> Maven -> Update project ->select Force update project check box and click on Finish.
Solution 3
On windows:
- Remove folder from C:\Users\USER.m2
- Close and open the project or force a change on file: pom.xml for saving :)
Solution 4
If a download fails for some reason Maven will not try to download it within a certain time frame (it leaves a file with a timestamp).
To fix this you can either
- Clear (parts of) your .m2 repo
- Run maven with -U to force an update
Solution 5
I have faced the same issue. Try declaring missing plugin in the conf/settings.xml.
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</plugin>
</plugins>
</pluginManagement>
</build>
spt025
Updated on January 22, 2022Comments
-
spt025 over 2 years
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
Solutions Tried:
Updated project: not able to download from REPO of maven.
Tried putting perticular jar in that folder of .m2 repo.
Can provide references if you want.