Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-21292

Unable to release WildFly with version 1.0.13 of the nxrm3 plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • 39.0.0.Final
    • None
    • Build System
    • None
    • ---
    • ---

      Many artifacts do build and upload fine but for some reason we have triggered this error in the bom builder:

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  14:26 h
      [INFO] Finished at: 2025-12-17T10:16:03Z
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.sonatype.plugins:nxrm3-maven-plugin:1.0.13:upload (nexus-upload) on project wildfly: Execution nexus-upload of goal org.sonatype.plugins:nxrm3-maven-plugin:1.0.13:upload failed: A required class was missing while executing org.sonatype.plugins:nxrm3-maven-plugin:1.0.13:upload: com/google/common/base/Preconditions
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    extension>org.sonatype.plugins:nxrm3-maven-plugin:1.0.13
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/home/darranl/tmp/m2-39/repository/org/sonatype/plugins/nxrm3-maven-plugin/1.0.13/nxrm3-maven-plugin-1.0.13.jar
      [ERROR] urls[1] = file:/home/darranl/tmp/m2-39/repository/org/sonatype/nexus/maven/nexus-common/1.6.8/nexus-common-1.6.8.jar
      [ERROR] urls[2] = file:/home/darranl/tmp/m2-39/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar
      [ERROR] urls[3] = file:/home/darranl/tmp/m2-39/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
      [ERROR] urls[4] = file:/home/darranl/tmp/m2-39/repository/com/fasterxml/jackson/core/jackson-databind/2.17.1/jackson-databind-2.17.1.jar
      [ERROR] urls[5] = file:/home/darranl/tmp/m2-39/repository/com/fasterxml/jackson/core/jackson-annotations/2.17.1/jackson-annotations-2.17.1.jar
      [ERROR] urls[6] = file:/home/darranl/tmp/m2-39/repository/com/fasterxml/jackson/core/jackson-core/2.17.1/jackson-core-2.17.1.jar
      [ERROR] urls[7] = file:/home/darranl/tmp/m2-39/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-xml/2.18.1/jackson-dataformat-xml-2.18.1.jar
      [ERROR] urls[8] = file:/home/darranl/tmp/m2-39/repository/org/codehaus/woodstox/stax2-api/4.2.2/stax2-api-4.2.2.jar
      [ERROR] urls[9] = file:/home/darranl/tmp/m2-39/repository/com/fasterxml/woodstox/woodstox-core/7.0.0/woodstox-core-7.0.0.jar
      [ERROR] urls[10] = file:/home/darranl/tmp/m2-39/repository/org/apache/httpcomponents/httpmime/4.5.14/httpmime-4.5.14.jar
      [ERROR] urls[11] = file:/home/darranl/tmp/m2-39/repository/org/apache/httpcomponents/httpclient/4.5.14/httpclient-4.5.14.jar
      [ERROR] urls[12] = file:/home/darranl/tmp/m2-39/repository/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar
      [ERROR] urls[13] = file:/home/darranl/tmp/m2-39/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
      [ERROR] urls[14] = file:/home/darranl/tmp/m2-39/repository/commons-codec/commons-codec/1.17.0/commons-codec-1.17.0.jar
      [ERROR] urls[15] = file:/home/darranl/tmp/m2-39/repository/com/google/code/gson/gson/2.13.1/gson-2.13.1.jar
      [ERROR] urls[16] = file:/home/darranl/tmp/m2-39/repository/com/google/errorprone/error_prone_annotations/2.38.0/error_prone_annotations-2.38.0.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
      [ERROR] 
      [ERROR] -----------------------------------------------------
      [ERROR] : com.google.common.base.Preconditions
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
      [ERROR] 
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR]   mvn <args> -rf org.wildfly.bom.builder:wildfly
      

      We suspect the plugin is missing this dependency:

          <dependencies>
              <dependency>
                  <groupId>com.google.guava</groupId>
                  <artifactId>guava</artifactId>
                  <version>25.1-android</version>
              </dependency>
          </dependencies>
      

              darran.lofthouse@redhat.com Darran Lofthouse
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: