Maven: Failed to retrieve plugin descriptor error

前端 未结 15 1723
粉色の甜心
粉色の甜心 2020-11-28 23:23

I configured Maven 3.0.3 and tried to download a sample project using archetypes with this command:

mvn archetype:generate -DarchetypeGroupId=org.graniteds.         


        
15条回答
  •  孤城傲影
    2020-11-29 00:07

    I had the same error. In my case I am using Netbeans 7.1.2, I am posting this because maybe someone end up here same as I did.

    I tried to configure the proxy options from the GUI, but the documentation says that maven doesn't read those. So I checked the NetBeans FAQ here :

    What mainly you have to do is create (if it does not exist) a settings.xml under

    user.home/.m2/settings.xml
    

    if you don't have it you can copy from

    netbeans.home/java/maven/conf/settings.xml
    

    then uncomment if you already have it otherwise just fill this section:

    
     
       true
       myproxy.host.net
       80
     
    
    

    you have to check your proxy configuration and replace it there

提交回复
热议问题