我正在使用以下软件在MacOS 10.14.6上工作:
当我尝试打开一个新的maven项目时,发生以下错误:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1
Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org
Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org
我尝试了以下方法:
<proxies>
<proxy>
<id>myproxy</id>
<active>true</active>
<protocol>http</protocol>
<username>****</username>
<password>****</password>
<host>proxy****</host>
<port>**</port>
<nonProxyHosts></nonProxyHosts>
</proxy>
</proxies>
http://repo1.maven.org/maven2/archetype-catalog.xml
我能帮您解决这个问题吗?
答案 0 :(得分:0)
通过在settings.xml中添加镜像内容来解决此问题。 https://maven.apache.org/guides/mini/guide-mirror-settings.html