Ошибка сборки Maven в командной строке, но сборка в eclipseJAVA

Программисты JAVA общаются здесь
Anonymous
Ошибка сборки Maven в командной строке, но сборка в eclipse

Сообщение Anonymous »

Я использую команду mvn clean из командной строки, и сборка не удалась.

Код: Выделить всё

Downloading:
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] Reactor Summary:
[INFO] ABC ......................................... FAILURE [  2.226 s]
[INFO] BUILD FAILURE
[INFO] Total time: 3.098 s
[INFO] Finished at: 2018-11-16T15:10:36+05:30
[INFO] Final Memory: 12M/153M
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of
its
dependencies could not be resolved: Failed to read artifact descriptor for
org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer
artifact
org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central
(https://repo.maven.apache.org/maven2): Received fatal alert:
protocol_version -
> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions,
please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
Но когда я использую команду mvn clean изнутри eclipse, она успешно собирается.

Код: Выделить всё

[INFO] ---------------------------------------------------------------------
---
Downloading:
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.4.1/maven-clean-plugin-2.4.1.pom
Downloaded:
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.4.1/maven-clean-plugin-2.4.1.pom (5 KB at 5.2 KB/sec)
-------------------------
[INFO] BUILD SUCCESS
[INFO] Total time: 4.387s
Разница, которую я вижу, заключается в том, что в командной строке он пытается загрузить maven-clean-plugin-2.5, тогда как из eclipse он успешно загружает 2.4.1.

Но мне нужно запустить только 2.5.
Может ли кто-нибудь мне помочь в этом?
Спасибо.

Подробнее здесь: https://stackoverflow.com/questions/533 ... in-eclipse

Вернуться в «JAVA»