IntelliJ IDEA - Maven2 - Установка - PullRequest
0 голосов
/ 05 июля 2019

Я загружаю из частного репозитория проект и при попытке установить я показываю ошибку, что мне нужен Maven2.Проблема в том, что когда я загружаю IntelliJ IDEA, я загружаю последнюю версию, которая предоставила Maven3.

Вопрос в том ... Возможно ли изменить версию Maven в IntelliJ IDEA?

, потому чтоДругая проблема, когда я устанавливаю проект, показывает следующую ошибку в консоли.

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.0-beta-7/maven-site-plugin-2.0-beta-7.jar
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.0-beta-7' from repository central (http://repo1.maven.org/maven2): Error transferring file: repo1.maven.org
[INFO] Skipping missing optional mojo: org.apache.maven.plugins:maven-site-plugin:attach-descriptor
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.jar
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-install-plugin:maven-plugin:2.2' from repository central (http://repo1.maven.org/maven2): Error transferring file: repo1.maven.org
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command: 
    mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-install-plugin -Dversion=2.2 -Dpackaging=maven-plugin -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there: 
    mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-install-plugin -Dversion=2.2 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.apache.maven.plugins:maven-install-plugin:maven-plugin:2.2

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


  org.apache.maven.plugins:maven-install-plugin:maven-plugin:2.2

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

Но я думаю, что проблема не в прокси, проблема в том, что repo1.maven.org предназначен для maven3.

1 Ответ

0 голосов
/ 05 июля 2019

IntelliJ IDEA (версия 2019.1.3 для Mac) Настройка пути для изменения домашнего каталога Maven.

Preferences | Build, Execution, Deployment | Build Tools | Maven

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...