Maven : 플러그인 설명자 오류 검색 실패
Maven 3.0.3을 구성하고 다음 명령으로 아키타 입을 사용하여 샘플 프로젝트를 다운로드하려고했습니다.
mvn archetype:generate -DarchetypeGroupId=org.graniteds.archetypes
-DarchetypeArtifactId=graniteds-tide-spring-jpa-hibernate
-DgroupId=org.example
-DartifactId=gdsspringflex
-Dversion=1.0-SNAPSHOT
(이 링크의 명령 : http://java.dzone.com/articles/enterprise-ria-spring-3-flex-4 )
그리고이 오류가 발생했습니다.
Downloading: repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.4.1: Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1
Downloading: repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-install-plugin:2.3.1: Plugin org.apache.maven.plugins:maven-install-plugin:2.3.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.3.1
.
.
.
Downloading: repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading: repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (repo1.maven.org/maven2): Error transferring file: Connection refused: connect
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (repo1.maven.org/maven2): Error transferring file: Connection refused: connect
Downloading: repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading: repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (repo1.maven.org/maven2): Error transferring file: Connection refused: connect
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (repo1.maven.org/maven2): Error transferring file: Connection refused: connect
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.479s
[INFO] Finished at: Tue Oct 18 12:44:58 BST 2011
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'archetype' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\krsl1254\.m2\repository), central (repo1.maven.org/maven2)] -> [Help 1]
이와 유사한 게시물을 검색했지만 답변을 얻지 못했습니다. settings.xml에서 프록시 설정을 변경하려고했지만 여전히 작동하지 않습니다. 저 좀 도와 주 시겠어요?
나는 같은 오류가 있었다. 제 경우에는 Netbeans 7.1.2를 사용하고 있는데, 누군가가 저와 똑같이 여기에 올 수 있기 때문에 이것을 게시하고 있습니다.
GUI에서 프록시 옵션을 구성하려고 시도했지만 문서에는 maven이 해당 옵션을 읽지 않는다고 나와 있습니다. 그래서 여기서 NetBeans FAQ를 확인했습니다 .
주로해야 할 일은 아래에 settings.xml을 만드는 것입니다 (존재하지 않는 경우).
user.home/.m2/settings.xml
없는 경우 복사 할 수 있습니다.
netbeans.home/java/maven/conf/settings.xml
이미 가지고 있다면 주석을 제거하십시오. 그렇지 않으면이 섹션을 채우십시오.
<proxies>
<proxy>
<active>true</active>
<host>myproxy.host.net</host>
<port>80</port>
</proxy>
</proxies>
프록시 구성을 확인하고 거기에서 교체해야합니다.
Eclipse와 비슷한 문제가 있었고 Sanders가 해결 한 것과 동일한 단계가있었습니다. 프록시가 maven 저장소에 대한 호출을 제한하기 때문에 발생합니다.
D:\Maven\apache-maven-3.0.4-bin\apache-maven-3.0.4\conf
(즉, maven 설치 폴더)로 이동 하십시오.- Windows 시스템의 사용자 폴더에
settings.xml
있는.m2
폴더에 복사 하여 붙여 넣으십시오 . - 프록시 설정 추가
이 같은:
<proxies>
<!-- proxy
Specification for one proxy, to be used in connecting to the network.
-->
<proxy>
<active>true</active>
<protocol>http</protocol>
<username>your username</username>
<password>password</password>
<host>proxy.host.net</host>
<port>80</port>
</proxy>
</proxies>
나는 넣어야한다
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
host>Your proxy host</host>
<port>proxy host ip</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
전에
<proxy>
<id>optional</id>
<active>true</active>
<protocol>https</protocol>
<host>Your proxy host</host>
<port>proxy host ip</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
이상하지만 그렇습니다. !!!, <protocol>http</protocol>
전에 와야 <protocol>https</protocol>
합니다. 그것은 내 문제를 해결했습니다. 에서 프록시 설정을 활성화 한 후에도 연결 문제에 직면 한 사람에게 도움이되기를 바랍니다 conf/settings.xml
.
In my case, it was not worknig even after passing the proxy credentails.
Mistake was - forgot to remove the comment line.
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>345325</username>
<password>dfgasdfg</password>
<host>proxy.abc.com</host>
<port>8080</port>
<nonProxyHosts>proxy.abc.com</nonProxyHosts>
</proxy>
|--> ----------REMOVE THIS LINE AND CLOSE It above <proxy> tag
I wouldn't advise you to do this but on my personal computer I disabled the firewall so that maven could get the required plugins.
I was having exactly the same problem.I went to my IE setting->LAN Settings.Then copied the Address as host and port as the port and it worked. Following is the snapshot of the proxies tag in the Settings.xml that I changed.
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<!--username>proxyuser</username>
<password>proxypass</password-->
<host>webtitan</host>
<port>8881</port>
<!--nonProxyHosts>local.net|some.host.com</nonProxyHosts-->
</proxy>
I had to change my password to the latest in the user.home/.m2/settings.xml file!
Thank it worked...
edit setting.xml
and replace proxy with this
Its working 100%
<proxy>
<active>true</active>
<protocol>http</protocol>
<username>your username</username>
<password>password</password>
<host>proxy.host.net</host>
<port>80</port>
This problem will solve when we change the version of apache-maven
I faced it and it was solved when i used apache-maven-2.2.1
I had the same problem because I was using port 80 instead of 8080 in the settings.xml proxy configuration
Mac OSX 10.7.5: I tried setting my proxy in the settings.xml file (as mentioned by posters above) in the /conf directory and also in the ~/.m2 directory, but still I got this error. I downloaded the latest version of Maven (3.1.1), and set my PATH variable to reflect the latest install, and it worked for me right off the shelf without any error.
I had the same issue in Windows
and it worked since my proxy configuration in settings.xml
file was changed
So locate and edit the file inside the \conf
folder, for example : C:\Program Files\apache-maven-3.2.5\conf
<proxies>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
|
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>jorgesys</username>
<password>supercalifragilisticoespialidoso</password>
<host>proxyjorgesys</host>
<port>8080</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
-->
</proxies>
- In my case i had to chage from port
80
to8080
- If you can´t edit this file that is located inside
/program files
you can make a copy, edit the file and replace the file located into/program files
folder.
In my case, even my system is not behind proxy, I got same issue. I was able to resolve by typing mvn help:archetype before mvn archetype:generate
If you created new settings.xml file instead of copy it from somewhere else, remember to put the tag inside :
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> <proxies> ..... </proxies> </settings>
For me, the solution given on the page maven is not able to download anything from central because ssl don't work worked, when running Mint 19 in a VM:
sudo apt install ca-certificates-java
sudo update-ca-certificates -f
참고URL : https://stackoverflow.com/questions/7819163/maven-failed-to-retrieve-plugin-descriptor-error
'developer tip' 카테고리의 다른 글
WHERE col IN (…) 조건에 대한 제한 (0) | 2020.11.24 |
---|---|
C ++ 문자열을 여러 줄로 분할 (파싱이 아닌 코드 구문) (0) | 2020.11.24 |
구글 크롬 북마크 기능 (0) | 2020.11.24 |
Pandas 데이터 프레임에서 None을 NaN으로 바꿉니다. (0) | 2020.11.24 |
솔루션별로 NuGet 패키지 원본을 설정하는 방법이 있습니까? (0) | 2020.11.24 |