简体   繁体   English

无法在Mac中创建org.apache.maven.archetypes:maven-archetype-quickstart

[英]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.

相关问题 maven-archetype-quickstart 使用 Java5 创建 Maven 项目 - maven-archetype-quickstart create Maven Project with Java5 Maven 无法从 uk.maven.org 传输元数据 org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml - Maven Could not transfer metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml from uk.maven.org "-DarchetypeArtifactId=maven-archetype-quickstart 有效,但 -DarchetypeArtifactId=maven-archetype-webapp 无效?" - -DarchetypeArtifactId=maven-archetype-quickstart works but -DarchetypeArtifactId=maven-archetype-webapp does not? 在由maven-archetype-quickstart创建的Maven Java Project中读取属性文件 - Reading Properties file in Maven Java Project created by maven-archetype-quickstart Eclipse中的Jersey Maven quickstart原型 - Jersey Maven quickstart archetype in Eclipse Maven 快速入门原型不存在 - Maven Quickstart Archetype does not exist 在Java 10中运行Maven原型“quickstart”? - Run Maven archetype “quickstart” in Java 10? Maven-在快速入门原型中更改jUnit版本 - Maven - Change jUnit Version in Quickstart Archetype Maven原型:org.apache.maven.plugins:maven-surefire-plugin:2.20.1:测试失败:NullPointerException - Maven archetype: org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.: NullPointerException Maven 3:无法执行目标org.apache.maven.plugins:maven-archetype-plugin:2.2:generate - Maven 3: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM