[exec] [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-plugin-plugin:3.2: Plugin org.apache.maven.plugins:maven-plugin-plugin:3.2 or one of its dependencies could not be resolved: Failed to read artifactdescriptor for org.apache.maven.plugins:maven-plugin-plugin:jar:3.2 Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[exec] [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-plugin-plugin:3.2: Plugin org.apache.maven.plugins:maven-plugin-plugin:3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-plugin-plugin:jar:3.2 Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
Cause: Failing to download any plugins from central or the Maven repository is not accessible.
Resolution
Fill this out in the \apache-maven-3.3.9\conf\settings.xml file. Replace the protocol/host/port with the values from your internet settings and put it in the <settings> tag of your maven settings.xml file.
<proxies>
<proxy>
<id>proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.example.com</host>
<port>8080</port>
</proxy>
</proxies>
Issue/Introduction
Error while generating an EAR file from the command line using Maven plugin.