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

quarkus-maven-plugin uses wrong version of Mandrel builder container

XMLWordPrintable

    • False
    • False
    • +
    • Hide
      mvn com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.1.Final-redhat-00001:create \      
          -DprojectGroupId=org.acme \
          -DprojectArtifactId=getting-started \
          -DplatformGroupId=com.redhat.quarkus.platform \
          -DplatformVersion=2.2.1.Final-redhat-00001 \
          -DclassName="org.acme.quickstart.GreetingResource" \
          -Dpath="/hello"
      cd getting-started
      mvn clean package -Dnative -Dquarkus.native.container-build=true
      
      Show
      mvn com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.1.Final-redhat-00001:create \ -DprojectGroupId=org.acme \ -DprojectArtifactId=getting-started \ -DplatformGroupId=com.redhat.quarkus.platform \ -DplatformVersion=2.2.1.Final-redhat-00001 \ -DclassName= "org.acme.quickstart.GreetingResource" \ -Dpath= "/hello" cd getting-started mvn clean package -Dnative -Dquarkus.native.container-build=true

      Wrong version of Mandrel is used for native image build:

      ➜  getting-started mvn clean package -Dnative -Dquarkus.native.container-build=true
      [INFO] [org.jboss.threads] JBoss Threads version 3.4.2.Final-redhat-00001
      [INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building native image source jar: /home/jcarvaja/sources/tmp/getting-started/target/getting-started-1.0.0-SNAPSHOT-native-image-source-jar/getting-started-1.0.0-SNAPSHOT-runner.jar
      [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Building native image from /home/jcarvaja/sources/tmp/getting-started/target/getting-started-1.0.0-SNAPSHOT-native-image-source-jar/getting-started-1.0.0-SNAPSHOT-runner.jar
      [WARNING] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Cannot find the `native-image` in the GRAALVM_HOME, JAVA_HOME and System PATH. Install it using `gu install native-image` Attempting to fall back to container build.
      [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildContainerRunner] Using docker to run the native image builder
      [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildContainerRunner] Checking image status registry.access.redhat.com/quarkus/mandrel-20-rhel8:latest
      

      Expected tag is registry.access.redhat.com/quarkus/mandrel-21-rhel8:21.2.

      Note that looking at the source code, the pom.xml at build-parent contains the wrong Mandrel image: "<platform.quarkus.native.builder-image>registry.access.redhat.com/quarkus/mandrel-20-rhel8:latest</platform.quarkus.native.builder-image>"

              hamadhan@redhat.com Harsh Madhani (Inactive)
              jcarvaja@redhat.com Jose Carvajal Hilario
              Jose Carvajal Hilario Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: