Maven: Failed to retrieve plugin descriptor error
来源:互联网 发布:软件开发助理工程师 编辑:程序博客网 时间:2024/06/05 07:52
问题描述:
在记性Maven打包操作mvn clean package时,提示错误如下:
[ERROR] Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved: Failed to read arti
org.apache.maven.plugins:maven-jar-plugin:jar:2.4: Could not transfer artifact org.apache.maven.plugins:maven-jar-plugin:pom:2.4 f
://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:80 [repo.maven.apache.org/23.235.47.215] failed: Connection tim
Help 1]
在记性Maven打包操作mvn clean package时,提示错误如下:
[ERROR] Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved: Failed to read arti
org.apache.maven.plugins:maven-jar-plugin:jar:2.4: Could not transfer artifact org.apache.maven.plugins:maven-jar-plugin:pom:2.4 f
://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:80 [repo.maven.apache.org/23.235.47.215] failed: Connection tim
Help 1]
解决方案:
I had a similar issue with Eclipse and the same steps as Sanders did solve it. It happens because the proxy restricts call to maven repository
- Go to
D:\Maven\apache-maven-3.0.4-bin\apache-maven-3.0.4\conf
(ie your maven installation folder) - Copy
settings.xml
and paste it in.m2
folder, which is in the users folder of your windows machine. - Add the proxy setting
Something like this:
<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>
文章转自:Maven: Failed to retrieve plugin descriptor error 0 0
- Maven: Failed to retrieve plugin descriptor error
- [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins....
- MAVEN安全代理设置引起的“[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:...”
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.5
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:2.3
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.7
- Failed to parse plugin descriptor for org.apache.hadoop:hadoop-maven-plugins
- CMEM Error: getVersion: Failed to retrieve version
- Maven 'failed to read artifact descriptor'
- mvn install失败:Failed to read artifact descriptor org.apache.maven.plugins:maven-install-plugin:jar:2
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-c
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:31:compile (default-co
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:war
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-c
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-in
- Java 直接插入排序
- 设计模式 II ——策略模式(Strategy)
- Exchange 2010 Ps 之使用更新脱机地址簿系列命令get-offlineaddressbook&Update-offlineaddressbook
- tomcat 内存溢出解决方案
- hive-0
- Maven: Failed to retrieve plugin descriptor error
- CPU标志寄存器
- 几个visual studio 的快捷键
- 初识聚类算法:K均值、凝聚层次聚类和DBSCAN
- 无缝滑动展示图片
- 博弈论
- uva11400 lighting system design
- PDF复制乱码 -- 原因及解决方案
- "阻塞--中断"驱动模型在i2c在子系统、uart驱动、spi子系统中的实现