“[warning] failed to retrieve plugin descriptor for caused by Maven security agent settings org.apache.maven . plugins:… “

when creating a simple Maven project with the Maven command, the following tip is given:

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 “

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: