Hello, Guys! Have an issue with Maven Plugin while deployment. Get the same issue on different projects:
[DEBUG] Writing tracking file /root/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.55/_remote.repositories
[DEBUG] Writing tracking file /root/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.55/bcprov-jdk15on-1.55.pom.lastUpdated
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=3054130, ConflictMarker.markTime=357777, ConflictMarker.nodeCount=150, ConflictIdSorter.graphTime=980745, ConflictIdSorter.topsortTime=69891, ConflictIdSorter.conflictIdCount=69, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=10255190, ConflictResolver.conflictItemCount=124, DefaultDependencyCollector.collectTime=5518100024, DefaultDependencyCollector.transformTime=18890075}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.657 s
[INFO] Finished at: 2022-04-07T07:18:22Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.7:configure (configure-bundle-step)
on project cep-identity-facade-v1-proxy:
Execution configure-bundle-step of goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.7:configure failed:
Plugin io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.7 or one of its dependencies could not be resolved:
Failed to collect dependencies at io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:jar:1.1.7 ->
org.apache.axis2:axis2-metadata:jar:1.3 ->
org.apache.axis2:axis2-kernel:jar:v1: Failed to read artifact descriptor for org.apache.axis2:axis2-kernel:jar:v1:
Could not transfer artifact org.apache.axis2:axis2-kernel:pom:v1 from/to maven-default-http-blocker (http://0.0.0.0/):
Blocked mirror for repositories: [central (http://repo1.maven.org/maven2, default, releases),
apache-ws-snapshots2 (http://ws.zones.apache.org/repository2, default, releases+snapshots),
tomcat-repository (http://tomcat.apache.org/dev/dist/m2-repository, default, releases),
apache-incubating (http://people.apache.org/repo/m2-incubating-repository, default, releases),
eclipse-repo (http://repo1.maven.org/eclipse, default, releases),
jibx (http://jibx.sourceforge.net/maven, legacy, releases+snapshots),
java.net (http://download.java.net/maven/1/, legacy, releases),
apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository, default, snapshots)] ->
[Help 1]
Solved! Go to Solution.
This is the key information in the error message:
Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.7:configure
You're using v1.1.7 of the plugin. You need to get to the current version. Change your shared-pom.xml file to refer to 1.3.2 (current version). The relevant stanza is like this:
<plugin>
<groupId>io.apigee.build-tools.enterprise4g</groupId>
<artifactId>apigee-edge-maven-plugin</artifactId>
<version>1.3.2</version> <!-- update this -->
<executions>
....
Maybe a little more detail: Maven has changed recently to by-default block http repositories. The older version of the apigee-edge-maven-plugin I guess had references to http repos. So Maven is stopping it. But the current version will work. Update your shared-pom.xml to get the current plugin.