Не удалось создать org.apache.maven.archetypes: maven-archetype-quickstart в Mac - PullRequest
0 голосов
/ 24 января 2019

Я не смог создать новый проект maven в весеннем тестовом наборе.Получение следующей ошибки

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

1 Ответ

0 голосов
/ 24 января 2019
<mirrors>
   <mirror>
     <id>UK</id>
     <name>UK Central</name>
     <url>http://uk.maven.org/maven2</url>
     <mirrorOf>central</mirrorOf>
  </mirror>
</mirrors>

Добавление вышеупомянутого в setting.xml устранит вышеуказанную ошибку

...