Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-3279

Several extensions do not have productised "-deployment" artefacts

XMLWordPrintable

    • False
    • None
    • False
    • +
    • Hide

      Example for "jdbc-db2" extension, can be reproduced for any other:

      1. Generate new app:

      mvn -Dmaven.repo.local=/quarkus/rhbq-3.1.2.ER1-repo \
      -Dquarkus-plugin.version=3.1.2.Final-redhat-00002 \
      -Dquarkus.platform.group-id=com.redhat.quarkus.platform \
      -Dquarkus.platform.artifact-id=quarkus-bom com.redhat.quarkus.platform:quarkus-maven-plugin:3.1.2.Final-redhat-00002:create \
      -DprojectGroupId=io.quarkus.qe \
      -DprojectArtifactId=jdbc-db2 \
      -DprojectVersion=1.0.0-SNAPSHOT \
      -DplatformGroupId=com.redhat.quarkus.platform \
      -DplatformArtifactId=quarkus-bom -Dextensions=jdbc-db2 -DquarkusRegistryClient=false
      

      2. Build the app:

      $ mvn -Dmaven.repo.local=/quarkus/rhbq-3.1.2.ER1-repo -Dquarkus-plugin.version=3.1.2.Final-redhat-00002 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom package -DskipTests -DskipITs
      <omitted for brevity>
      [INFO] --- quarkus-maven-plugin:3.1.2.Final-redhat-00002:generate-code (default) @ jdbc-db2 ---
      [WARNING] The POM for io.quarkus:quarkus-jdbc-db2deployment:jar:3.1.2.Final-redhat-00003 is missing, no dependency information available
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  1.045 s
      [INFO] Finished at: 2023-07-26T17:39:08+02:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal com.redhat.quarkus.platform:quarkus-maven-plugin:3.1.2.Final-redhat-00002:generate-code (default) on project jdbc-db2: Quarkus code generation phase has failed: Failed to bootstrap application in NORMAL mode: Failed to inject extension deployment dependencies for io.quarkus.qe:jdbc-db2:1.0.0-SNAPSHOT: Failed to collect dependencies of io.quarkus:quarkus-jdbc-db2-deployment:jar:3.1.2.Final-redhat-00003: either its POM could not be resolved from the available Maven repositories or the artifact does not have any dependencies while at least a dependency on the runtime artifact io.quarkus:quarkus-jdbc-db2:jar:3.1.2.Final-redhat-00003 is expected 
      

      The same works if used with, eg, "quarkus-qute" extension

      mvn \
      -Dmaven.repo.local=/quarkus/rhbq-3.1.2.ER1-repo \
      -Dquarkus-plugin.version=3.1.2.Final-redhat-00002 \
      -Dquarkus.platform.group-id=com.redhat.quarkus.platform \
      -Dquarkus.platform.artifact-id=quarkus-bom com.redhat.quarkus.platform:quarkus-maven-plugin:3.1.2.Final-redhat-00002:create \
      -DprojectGroupId=io.quarkus.qe \
      -DprojectArtifactId=quarkus-qute \
      -DprojectVersion=1.0.0-SNAPSHOT \
      -DplatformGroupId=com.redhat.quarkus.platform \
      -DplatformArtifactId=quarkus-bom \
      -Dextensions=quarkus-qute \
      -DquarkusRegistryClient=false
      

      Or for the upstream version of the extension:

      mvn \
      -Dquarkus-plugin.version=3.1.2.Final \
      -Dquarkus.platform.group-id=io.quarkus.platform \
      -Dquarkus.platform.artifact-id=quarkus-bom \
      io.quarkus.platform:quarkus-maven-plugin:3.1.2.Final:create \
      -DprojectGroupId=io.quarkus.qe \
      -DprojectArtifactId=jdbc-db2 \
      -DprojectVersion=1.0.0-SNAPSHOT \
      -DplatformGroupId=io.quarkus.platform \
      -DplatformArtifactId=quarkus-bom -Dextensions=jdbc-db2 -DquarkusRegistryClient=false
      
      Show
      Example for "jdbc-db2" extension, can be reproduced for any other: 1. Generate new app: mvn -Dmaven.repo. local =/quarkus/rhbq-3.1.2.ER1-repo \ -Dquarkus-plugin.version=3.1.2.Final-redhat-00002 \ -Dquarkus.platform.group-id=com.redhat.quarkus.platform \ -Dquarkus.platform.artifact-id=quarkus-bom com.redhat.quarkus.platform:quarkus-maven-plugin:3.1.2.Final-redhat-00002:create \ -DprojectGroupId=io.quarkus.qe \ -DprojectArtifactId=jdbc-db2 \ -DprojectVersion=1.0.0-SNAPSHOT \ -DplatformGroupId=com.redhat.quarkus.platform \ -DplatformArtifactId=quarkus-bom -Dextensions=jdbc-db2 -DquarkusRegistryClient=false 2. Build the app: $ mvn -Dmaven.repo. local =/quarkus/rhbq-3.1.2.ER1-repo -Dquarkus-plugin.version=3.1.2.Final-redhat-00002 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom package -DskipTests -DskipITs <omitted for brevity> [INFO] --- quarkus-maven-plugin:3.1.2.Final-redhat-00002:generate-code (default) @ jdbc-db2 --- [WARNING] The POM for io.quarkus:quarkus-jdbc-db2deployment:jar:3.1.2.Final-redhat-00003 is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time : 1.045 s [INFO] Finished at: 2023-07-26T17:39:08+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.redhat.quarkus.platform:quarkus-maven-plugin:3.1.2.Final-redhat-00002:generate-code (default) on project jdbc-db2: Quarkus code generation phase has failed: Failed to bootstrap application in NORMAL mode: Failed to inject extension deployment dependencies for io.quarkus.qe:jdbc-db2:1.0.0-SNAPSHOT: Failed to collect dependencies of io.quarkus:quarkus-jdbc-db2-deployment:jar:3.1.2.Final-redhat-00003: either its POM could not be resolved from the available Maven repositories or the artifact does not have any dependencies while at least a dependency on the runtime artifact io.quarkus:quarkus-jdbc-db2:jar:3.1.2.Final-redhat-00003 is expected The same works if used with, eg, "quarkus-qute" extension mvn \ -Dmaven.repo. local =/quarkus/rhbq-3.1.2.ER1-repo \ -Dquarkus-plugin.version=3.1.2.Final-redhat-00002 \ -Dquarkus.platform.group-id=com.redhat.quarkus.platform \ -Dquarkus.platform.artifact-id=quarkus-bom com.redhat.quarkus.platform:quarkus-maven-plugin:3.1.2.Final-redhat-00002:create \ -DprojectGroupId=io.quarkus.qe \ -DprojectArtifactId=quarkus-qute \ -DprojectVersion=1.0.0-SNAPSHOT \ -DplatformGroupId=com.redhat.quarkus.platform \ -DplatformArtifactId=quarkus-bom \ -Dextensions=quarkus-qute \ -DquarkusRegistryClient=false Or for the upstream version of the extension: mvn \ -Dquarkus-plugin.version=3.1.2.Final \ -Dquarkus.platform.group-id=io.quarkus.platform \ -Dquarkus.platform.artifact-id=quarkus-bom \ io.quarkus.platform:quarkus-maven-plugin:3.1.2.Final:create \ -DprojectGroupId=io.quarkus.qe \ -DprojectArtifactId=jdbc-db2 \ -DprojectVersion=1.0.0-SNAPSHOT \ -DplatformGroupId=io.quarkus.platform \ -DplatformArtifactId=quarkus-bom -Dextensions=jdbc-db2 -DquarkusRegistryClient=false
    • ---

      Several (52 out of 169) productised dependencies[1] do not have corresponding "quarkus-$extension-deployment" artifacts, which are required for running apps. One of them ("quarkus-jdbc-db2") is supported on JVM and another ("quarkus-jdbc-derby") is dev-supported, the rest are supported by community, but it is important for us to not broke the user experience for users coming from upstream platform.

      The same situation already happened in 2.2.3: https://issues.redhat.com/browse/QUARKUS-1488.

      [1] Full list of failed extension can be found in the attachment

        1. failed
          1 kB
          Fedor Dudinskii

              sausingh@redhat.com Saumya Singh
              rhn-support-fdudinsk Fedor Dudinskii
              Fedor Dudinskii Fedor Dudinskii
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: