Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-7411

Cannot deploy component-matrix-builder using nxrm3-maven-plugin:1.0.13

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Build System
    • None

      wildfly-core-component-matrix-builder uses nxrm3-maven-plugin upload goal as a workaround to deploy different artifacts that have different maven GAs. The following note was added in the pom.xml describing the reason:

      <!--
      The staging-deploy mojo can't deal with directly deploying this project's artifacts
      to a remote repo, because different artifacts have different maven GAs.
      So, we configure it to stage locally, and then in a subsequent execution we upload.
      The local staging writes a proper repo file layout, which the upload mojo
      uses to determine the GAV info for what it uploads.
      -->
      

      However, after upgrading jboss-parent to version 51, this workaround is not working, apparently due to a missing dependency required by an nxrm3-maven-plugin upgrade above 1.0.7 version. This error is logged in such a case:

      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.sonatype.plugins:nxrm3-maven-plugin:1.0.13:upload (nexus-upload) on project wildfly-core-component-matrix-builder: 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/yborgess/.m2/repository/org/sonatype/plugins/nxrm3-maven-plugin/1.0.13/nxrm3-maven-plugin-1.0.13.jar
      [ERROR] urls[1] = file:/home/yborgess/.m2/repository/org/sonatype/nexus/maven/nexus-common/1.6.8/nexus-common-1.6.8.jar
      [ERROR] urls[2] = file:/home/yborgess/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar
      [ERROR] urls[3] = file:/home/yborgess/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
      [ERROR] urls[4] = file:/home/yborgess/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.17.1/jackson-databind-2.17.1.jar
      [ERROR] urls[5] = file:/home/yborgess/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.17.1/jackson-annotations-2.17.1.jar
      [ERROR] urls[6] = file:/home/yborgess/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.17.1/jackson-core-2.17.1.jar
      [ERROR] urls[7] = file:/home/yborgess/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-xml/2.18.1/jackson-dataformat-xml-2.18.1.jar
      [ERROR] urls[8] = file:/home/yborgess/.m2/repository/org/codehaus/woodstox/stax2-api/4.2.2/stax2-api-4.2.2.jar
      [ERROR] urls[9] = file:/home/yborgess/.m2/repository/com/fasterxml/woodstox/woodstox-core/7.0.0/woodstox-core-7.0.0.jar
      [ERROR] urls[10] = file:/home/yborgess/.m2/repository/org/apache/httpcomponents/httpmime/4.5.14/httpmime-4.5.14.jar
      [ERROR] urls[11] = file:/home/yborgess/.m2/repository/org/apache/httpcomponents/httpclient/4.5.14/httpclient-4.5.14.jar
      [ERROR] urls[12] = file:/home/yborgess/.m2/repository/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar
      [ERROR] urls[13] = file:/home/yborgess/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
      [ERROR] urls[14] = file:/home/yborgess/.m2/repository/commons-codec/commons-codec/1.17.0/commons-codec-1.17.0.jar
      [ERROR] urls[15] = file:/home/yborgess/.m2/repository/com/google/code/gson/gson/2.13.1/gson-2.13.1.jar
      [ERROR] urls[16] = file:/home/yborgess/.m2/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
      

              yborgess1@redhat.com Yeray Borges Santana
              yborgess1@redhat.com Yeray Borges Santana
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: