Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-11410 Camunda Engine Quarkus Extension
  3. CAM-13582

Build of Quarkus Extension fails with Maven 3.2.5

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • L3 - Default
    • 7.16.0, 7.16.0-alpha4
    • None
    • quarkus
    • None

    Description

      Problem

      When building a Quarkus.io project with Maven 3.2.5, the build fails due to the plugin quarkus-bootstrap-maven-plugin which requires a higher version of Maven. This is problematic since our mono repo is built with this version.

      Solution ideas

      1. Replace what quarkus-bootstrap-maven-plugin does and use Maven 3.2.5
        • Putting a META-INF/quarkus-extension.properties makes it work with Maven 3.2.5
          • File content: deployment-artifact=org.camunda.bpm.quarkus\:camunda-bpm-quarkus-engine-deployment\:1.0.0-SNAPSHOT
      2. Build the Quarkus.io extension as a downstream project with a higher Maven version
      3. Call maven command with higher version inside the Maven 3.1.5 run to build the quarkus extension

      Stacktrace excerpt

      % mvn clean install 
      Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
      [INFO] Scanning for projects...
      [WARNING] Error injecting: io.quarkus.maven.components.BootstrapSessionListener
      com.google.inject.ProvisionException: Unable to provision, see the following errors:
      
      1) Error injecting: private org.eclipse.aether.spi.log.Logger org.apache.maven.repository.internal.DefaultVersionRangeResolver.logger
        while locating org.apache.maven.repository.internal.DefaultVersionRangeResolver
        while locating java.lang.Object annotated with *
        at org.eclipse.sisu.wire.LocatorWiring
        while locating org.eclipse.aether.impl.VersionRangeResolver
          for parameter 1 at org.eclipse.aether.internal.impl.DefaultRepositorySystem.<init>(Unknown Source)
        while locating org.eclipse.aether.internal.impl.DefaultRepositorySystem
        while locating java.lang.Object annotated with *
        at ClassRealm[extension>io.quarkus:quarkus-maven-plugin:1.13.4.Final, parent: sun.misc.Launcher$AppClassLoader@42a57993] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
        while locating io.quarkus.maven.QuarkusBootstrapProvider
        while locating io.quarkus.maven.components.BootstrapSessionListener
      Caused by: java.lang.IllegalArgumentException: Can not set org.eclipse.aether.spi.log.Logger field org.apache.maven.repository.internal.DefaultVersionRangeResolver.logger to org.eclipse.aether.internal.impl.slf4j.Slf4jLoggerFactory
      

      Hints

      See complete Stacktrace attached.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                tassilo.weidner Tassilo Weidner
                tassilo.weidner Tassilo Weidner
                Tassilo Weidner Tassilo Weidner
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce