[英]Couldn't create org.apache.maven.archetypes:maven-archetype-quickstart in Mac
I couldn't create a new maven project in spring test suite. 我无法在Spring Test Suite中创建新的Maven项目。 Getting the following error
出现以下错误
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.4 from any of the configured repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.4
Failure to transfer org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.4 from ${env.ARTIFACTORY_URL} 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.4 from/to central (${env.ARTIFACTORY_URL}): Cannot access ${env.ARTIFACTORY_URL} with type default using the available connector factories: AetherRepositoryConnectorFactory, BasicRepositoryConnectorFactory
Failure to transfer org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.4 from ${env.ARTIFACTORY_URL} 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.4 from/to central (${env.ARTIFACTORY_URL}): Cannot access ${env.ARTIFACTORY_URL} with type default using the available connector factories: AetherRepositoryConnectorFactory, BasicRepositoryConnectorFactory
Failure to transfer org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.4 from ${env.ARTIFACTORY_URL} 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.4 from/to central (${env.ARTIFACTORY_URL}): Cannot access ${env.ARTIFACTORY_URL} with type default using the available connector factories: AetherRepositoryConnectorFactory, BasicRepositoryConnectorFactory
Failure to transfer org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.4 from ${env.ARTIFACTORY_URL} 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.4 from/to central (${env.ARTIFACTORY_URL}): Cannot access ${env.ARTIFACTORY_URL} with type default using the available connector factories: AetherRepositoryConnectorFactory, BasicRepositoryConnectorFactory
<mirrors>
<mirror>
<id>UK</id>
<name>UK Central</name>
<url>http://uk.maven.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
Adding the above to setting.xml would resolve the above error 将以上内容添加到setting.xml将解决以上错误
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.