Maven, Access denied to: http://repo1.maven.org/maven2

前端 未结 4 1221
忘了有多久
忘了有多久 2020-12-16 20:33

I have just downloaded last version of Maven.

And when i am trying to run

mvn archetype:generate

i get error message

4条回答
  •  一整个雨季
    2020-12-16 21:11

    It seems as though directory browsing on http://repo1.maven.org/maven2 has been switched off. I had to resort to getting the archetype catalog myself. I did this:

    mvn archetype:generate -DarchetypeCatalog=http://search.maven.org/remotecontent?filepath=archetype-catalog.xml
    

    Alternatively I guess you could just download the archetype-catalog.xml file from that link and place it in your .m2 directory as mentioned in this comment:

    http://jira.codehaus.org/browse/ARCHETYPE-202?focusedCommentId=182771&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-182771

提交回复
热议问题