when creating a simple Maven project with the Maven command, the following tip is given:
p>
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
“[WARNING] Failed to retrieve the plugin descriptor for org.. Apache maven. Plugins: maven – clean – plugin: 2.5: the plugin org. Apache. Maven. Plugins: maven – clean – plugin: 2.5 or one of its dependencies could not be Resolved: Failed to read an artifact descriptor for org.. Apache maven. Plugins: maven – clean – plugin: jar: 2.5 “ p>
from the Internet to see some reasons for analysis, summarized as follows:
1) maven.apache.org
cannot be accessed from the network used
2) the proxy server is not configured or is incorrectly configured.
if your company requires you to use a secure authenticated proxy to access the Internet for security reasons, then you need to configure the HTTP proxy for Maven. Add the agent configuration to the configuration file %MAVEN_HOME%/conf/setting.xml:
<proxies>
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
</proxies>
username: proxy server username
password: proxy server password
host: proxy server address
port: proxy server port
nonProxyHosts: host address
that is not accessed using the proxy server
Read More:
- mvn install Error: Failed to read artifact descriptor org.apache.maven.plugins:maven-install-plugin:jar:2
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test
- Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on pr
- 解决Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- Failed to execute goal org.apache.maven . plugins:maven-surefire-plugin :2.12.4:test
- Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test)
- RocketMQ Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check…
- How to Fix Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
- Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.0.0:clean (default-clean) on
- Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (default) on project
- Cannot resolve plugin org.apache.maven.plugins:maven-jar-plugin:2.4
- Failed to execute goal org.apache.maven . plugins:maven-clean-plugin :2.6.1:cle
- Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
- Error resolving version for plugin ‘org.apache.maven.plugins:maven-compiler-plugin’ from the repo…
- Failed to execute goal org.apache.tomcat . maven:tomcat7-maven-plugin : 2.2: run solution
- Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project
- Failed to execute goal in Maven build org.apache.tomcat .maven:
- The import Maven project appears http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Solutions