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): connect timed out
Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out
我已经配置了settings.xml,并且已经将maven安装到eclipse中,并且也已经配置了jdk,但是无法解决问题,我还添加了远程目录,其中http://repo1.maven.org/maven2/archetype-catalog.xml作为calalog文件,但是也面临相同的问题。
答案 0 :(得分:1)
Maven无法到达其中心repo
如果您有任何代理人, 请在settings.xml中配置代理
<proxies>
<proxy>
<id>proxy</id>
<active>true</active>
<protocol>your_protocol</protocol>
<host>your_host</host>
<port>your_port</port>
</proxy>
</proxies>