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.
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.
Thank you, Dino! It works really nice!
@dchiesa1, Got another issue of the same type but with Apigee X. I've tried version 2.3.1 but in Maven 3.8.6 I have this issue. Should define some specific version or update any other plugin Maven uses?
<plugin>
<groupId>io.apigee.build-tools.enterprise4g</groupId>
<artifactId>apigee-edge-maven-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>configure-bundle</id>
<phase>package</phase>
<goals>
<goal>configure</goal>
</goals>
</execution>
<execution>
<id>deploy-bundle</id>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
, default, releases+snapshots, blocked)]
[DEBUG] Writing tracking file C:\Users\ochal\.m2\repository\org\apache\axis2\axis2-saaj\v1\axis2-saaj-v1.pom.lastUpdated
[DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for ossrh-snapshots (http://oss.sonatype.org/content/repositories/snapshots).
[DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=628100, ConflictMarker.markTime=210701, ConflictMarker.nodeCount=205, ConflictIdSorter.graphTime=148601, ConflictIdSorter.topsortTime=68900, ConflictIdSorter.conflictIdCount=93, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=5690300, ConflictResolver.conflictItemCount=157, DefaultDependencyCollector.collectTime=671665000, DefaultDependencyCollector.transformTime=6798500}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.579 s
[INFO] Finished at: 2022-06-21T13:34:19+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:2.3.1:configure (configure-bundle) on project videos-v1: Execution configure-bundle of goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:2.3.1:configure failed: Plugin io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:2.3.1 or one of its dependencies could not be resolved: Failed to collect dependencies at io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:jar:2.3.1 -> 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: [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]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:2.3.1:configure (configure-bundle) on project videos-v1: Execution configure-bundle of goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:2.3.1:configure failed: Plugin io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:2.3.1 or one of its dependencies could not be resolved: Failed to collect dependencies at io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:jar:2.3.1 -> org.apache.axis2:axis2-metadata:jar:1.3 -> org.apache.axis2:axis2-kernel:jar:v1
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:375)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |