Java 在eclipse中创建基于maven的项目时出错
我在输入工件id后发现了这个错误Java 在eclipse中创建基于maven的项目时出错,java,eclipse,maven,Java,Eclipse,Maven,我在输入工件id后发现了这个错误 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 Failure to tran
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
Failure to transfer org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced.
Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): Connection refused: connect
您需要删除
${yourUser}/.m2/repository/org/apache/maven/archetypes
添加或链接您的错误删除后,我面临相同的错误