How to solve maven 2.6 resource plugin dependency?

前端 未结 11 1728
無奈伤痛
無奈伤痛 2020-11-29 07:16

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         


        
相关标签:
11条回答
  • 2020-11-29 07:48

    Tried everything. I deleted m2e and installed m2e version 2.7.0. Then deleted the .m2 directory and force updated maven. It worked!

    0 讨论(0)
  • 2020-11-29 07:52

    On windows:

    1. Remove folder from C:\Users\USER.m2
    2. Close and open the project or force a change on file: pom.xml for saving :)
    0 讨论(0)
  • 2020-11-29 07:52

    I had exactly the same error. My network is an internal one of a company. The proxy has been disabled from the IT team so for that we do not have to enable any proxy settings. I have commented the proxy setting in settings.xml file from the below mentioned locations C:\Users\vijay.singh.m2\settings.xml This fixed the same issue for me

    0 讨论(0)
  • 2020-11-29 07:53

    Right Click on Project go to -> Maven -> Update project ->select Force update project check box and click on Finish.

    0 讨论(0)
  • 2020-11-29 07:53

    This fixed the same issue for me: My eclipse is installed in /usr/local/bin/eclipse

    1) Changed permission for eclipse from root to owner: sudo chown -R $USER eclipse

    2) Right click on project/Maven right click on Update Maven select Force update maven project

    0 讨论(0)
  • 2020-11-29 07:55

    I had exactly the same error. My network is an internal one of a company. I downloaded neon-eclipse for java developpers. These steps worked for me:

    1- I downloaded a VPN client on my PC to be totally blinded from the network. Shellfire I used. Use free account and connect to Shellserver.

    2- Inside the windows firewall, I added incoming rule for Eclipse. Navigate to where eclipse exe is found.

    3- Perform Maven Update project.

    Then the project was able to fetch from the maven repository.

    hope it helps.

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