Maven error in eclipse (pom.xml) : Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4

前端 未结 8 1752
广开言路
广开言路 2021-02-01 04:53

I wanna make web project using the Maven to import automatically all libraries that I need, so I chose \"maven-archetype-webpp\"

after that I got this error

相关标签:
8条回答
  • 2021-02-01 05:08

    just right click on your project, hover maven then click update project.. done!!

    0 讨论(0)
  • 2021-02-01 05:12

    For Unix Users

    find ~/.m2 -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;

    Right-click your project and choose Update Dependencies

    For Windows

    • CD (change directory) to .m2\repository
    • execute the command for /r %i in (*.lastUpdated) do del %i
    • Then right-click your project and choose Update Dependencies
    0 讨论(0)
  • 2021-02-01 05:15

    If you are using Eclipse Neon, try this:

    1) Add the maven plugin in the properties section of the POM:

    <properties>
        <java.version>1.8</java.version>
        <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
    </properties>
    

    2) Force update of project snapshot by right clicking on Project

    Maven -> Update Project -> Select your Project -> Tick on the 'Force Update of Snapshots/Releases' option -> OK

    0 讨论(0)
  • 2021-02-01 05:16

    In my case it was a failed import to eclipse. I had to delete the project from eclipse (without deleting form the filesystem of course) and reimport it. After that the error was gone immediately.

    0 讨论(0)
  • 2021-02-01 05:23

    Right click on project-> Maven->Click checked box 'Force Update'->Update

    0 讨论(0)
  • 2021-02-01 05:25

    Right Click on your project: Run (As) -> Maven clean Right Click on your project: Run (As) -> Maven install

    0 讨论(0)
提交回复
热议问题