Не удалось рассчитать план сборки при создании проекта maven

2

Я только что создал новый проект maven, при создании у меня уже есть ошибка:

Description Resource    Path    Location    Type
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from/to central (http://repo.maven.apache.org/maven2): null to http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom pom.xml /WD_Automation  line 1  Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile)  pom.xml /WD_Automation  line 1  Maven Project Build Lifecycle Mapping Problem
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from http://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.plugins:maven-compiler-plugin:pom:2.3.2 from/to central (http://repo.maven.apache.org/maven2): null to http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom    pom.xml /WD_Automation  line 1  Maven Project Build Lifecycle Mapping Problem
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile) pom.xml /WD_Automation  line 1  Maven Project Build Lifecycle Mapping Problem

Я не понимаю, почему, потому что я ничего не трогал в помпе или что-то еще.

У вас есть идея?

  • 0
    Проблема с прокси / брандмауэром ...
Теги:
maven

3 ответа

2

Maven пытается загрузить плагины с MavenCentral, но не удается. Обычно это проблема сети или прокси.

  • 0
    Есть ли решение, если я не могу изменить сеть или прокси?
  • 1
    Вы можете поместить конфигурацию прокси в файл settings.xml
Показать ещё 1 комментарий
0

Я заменил Eclipse Kepler 4.3.2 SR2 на java8-патчи с Eclipse Photon 4.8.0, и проблема исчезла.

0

Из сообщения об ошибке, возможно, этот репозиторий http://repo.maven.apache.org/maven2 не доступен для вас, вы можете найти полезный репозит в Интернете.

Ещё вопросы

Сообщество Overcoder
Наверх
Меню