Pom.xml error in Eclipse

I created a web project and when I right clicked on the project project->configure->maven

I get this error in pom.xml

.

Unable to port org.apache.maven.plugins: maven-surefire-plugin: pom: 2.12.4 from http://repo.maven.apache.org/maven2 has been cached in the local repository, permission will not be re-downloaded until the central interval is updated expired or update is forced. Original error: Failed to upload artifact org.apache.maven.plugins: maven-surefire-plugin: pom: 2.12.4 from / to central ( http://repo.maven.apache.org/maven2 ): repo.maven. apache.org

+3


source to share


3 answers


1 Go to the directory {Home}/.m2/repository/org/apache

.

2 Delete the maven folder. then click the projectproject->configure->maven

To be more sure: Right click on the Maven project in Eclipse and select Maven -> Update Project

...



In the dialog box that appears, select Force Update of Snapshots / Releases and click OK

Make sure you have no proxy issues when you update the project.

+7


source


Remove the problematic library from your local repository manually (force it to reload). By default it is in

% USER% .m2 \ storage

% USER% .m2 \ repository \ org \ Apache \ Maven



Removing the library from the second location then rebuilding the project will usually fix the problem

+4


source


Unable to port org.apache.maven.plugins: maven-surefire-plugin: pom: 2.12.4 from https://repo.maven.apache.org/  maven2 has been cached in local repository, permission will not be re-downloaded until until the update interval of the central past or updated. Original error: Failed to upload artifact org.apache.maven.plugins: maven-surefire- plugin: pom: 2.12.4 from / to central ( https://repo.maven.apache.org/maven2 ): repo.maven. apache.org

In IN directory you can find ur m2repository where you need to delete surefire goto user find m2 folder -> org-> apache-> surefire

ONCE delete that correct fire folder and then update ur maven project.

rightclick-> maven-> upddateproject (check update). Now there will be an error. went

-1


source







All Articles