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

Quarkus CLI fails to build Gradle app it created with 3.2.10.CR2 product but works with community version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.2.10.CR2, 3.2.11.CR1, 3.2.12.CR1
    • team/prod
    • Hide
      1. quarkus create app app2 --stream=3.2 --gradle -Dquarkus.analytics.disabled=true
      2. cd app2/
      3. quarkus build -Dmaven.repo.local=/home/hudson/hudson_workspace/workspace/rhbq-3.2-rhel8-jdk17-baremetal-ts-jvm/e0e210f1/quarkus-test-suite/rh-quarkus-platform-3.2.10.GA-maven-repository/maven-repository/ -Dquarkus.analytics.disabled=true

      Prerequisities:

      • download maven.zip bits
      • setup ~/.quarkus/config.yaml
      —
      registries:
      registry-3-2-10-final-redhat-00002.apps.ocp-c1.prod.psi.redhat.com:
          update-policy: "always"
          descriptor:
            artifact: "com.redhat.psi.prod.ocp-c1.apps.registry-3-2-10-final-redhat-00002:quarkus-registry-descriptor::json:1.0-SNAPSHOT"
          maven:
            repository:
              url: "https://registry-3-2-10-final-redhat-00002.apps.ocp-c1.prod.psi.redhat.com/maven"
      registry.quarkus.io 
      • setup ~/.m2/settings.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">    <proxies>
              <proxy>
                  <id>internal-proxy</id>
                  <active>true</active>
                  <protocol>https</protocol>
                  <host>squid.corp.redhat.com</host>
                  <port>3128</port>
              </proxy>
          </proxies>    <profiles>
              <profile>
                  <id>red-hat-enterprise-maven-repository</id>
                  <repositories>
                      <repository>
                          <id>red-hat-enterprise-maven-repository</id>
                          <url>file:///home/hudson/hudson_workspace/workspace/rhbq-3.2-rhel8-jdk17-baremetal-ts-jvm/e0e210f1/quarkus-test-suite/rh-quarkus-platform-3.2.10.GA-maven-repository/maven-repository/</url>
                          <releases>
                              <enabled>true</enabled>
                          </releases>
                          <snapshots>
                              <enabled>false</enabled>
                          </snapshots>
                      </repository>
                  </repositories>
                  <pluginRepositories>
                      <pluginRepository>
                          <id>red-hat-enterprise-maven-repository</id>
                          <url>file:///home/hudson/hudson_workspace/workspace/rhbq-3.2-rhel8-jdk17-baremetal-ts-jvm/e0e210f1/quarkus-test-suite/rh-quarkus-platform-3.2.10.GA-maven-repository/maven-repository/</url>
                          <releases>
                              <enabled>true</enabled>
                          </releases>
                          <snapshots>
                              <enabled>false</enabled>
                          </snapshots>
                      </pluginRepository>
                  </pluginRepositories>
              </profile>
          </profiles>
          <activeProfiles>
              <activeProfile>red-hat-enterprise-maven-repository</activeProfile>
          </activeProfiles>
      </settings> 
      Show
      quarkus create app app2 --stream=3.2 --gradle -Dquarkus.analytics.disabled=true cd app2/ quarkus build -Dmaven.repo.local=/home/hudson/hudson_workspace/workspace/rhbq-3.2-rhel8-jdk17-baremetal-ts-jvm/e0e210f1/quarkus-test-suite/rh-quarkus-platform-3.2.10.GA-maven-repository/maven-repository/ -Dquarkus.analytics.disabled=true Prerequisities: download maven.zip bits setup ~/.quarkus/config.yaml — registries: registry-3-2-10- final -redhat-00002.apps.ocp-c1.prod.psi.redhat.com:     update-policy: "always"     descriptor:       artifact: "com.redhat.psi.prod.ocp-c1.apps.registry-3-2-10- final -redhat-00002:quarkus-registry-descriptor::json:1.0-SNAPSHOT"     maven:       repository:         url: "https: //registry-3-2-10- final -redhat-00002.apps.ocp-c1.prod.psi.redhat.com/maven" registry.quarkus.io setup ~/.m2/settings.xml <?xml version= "1.0" encoding= "UTF-8" ?> <settings xmlns= "http: //maven.apache.org/SETTINGS/1.2.0"           xmlns:xsi= "http: //www.w3.org/2001/XMLSchema-instance"           xsi:schemaLocation= "http: //maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd" >    <proxies>         <proxy>             <id>internal-proxy</id>             <active> true </active>             <protocol>https</protocol>             <host>squid.corp.redhat.com</host>             <port>3128</port>         </proxy>     </proxies>    <profiles>         <profile>             <id>red-hat-enterprise-maven-repository</id>             <repositories>                 <repository>                     <id>red-hat-enterprise-maven-repository</id>                     <url>file: ///home/hudson/hudson_workspace/workspace/rhbq-3.2-rhel8-jdk17-baremetal-ts-jvm/e0e210f1/quarkus-test-suite/rh-quarkus-platform-3.2.10.GA-maven-repository/maven-repository/</url>                     <releases>                         <enabled> true </enabled>                     </releases>                     <snapshots>                         <enabled> false </enabled>                     </snapshots>                 </repository>             </repositories>             <pluginRepositories>                 <pluginRepository>                     <id>red-hat-enterprise-maven-repository</id>                     <url>file: ///home/hudson/hudson_workspace/workspace/rhbq-3.2-rhel8-jdk17-baremetal-ts-jvm/e0e210f1/quarkus-test-suite/rh-quarkus-platform-3.2.10.GA-maven-repository/maven-repository/</url>                     <releases>                         <enabled> true </enabled>                     </releases>                     <snapshots>                         <enabled> false </enabled>                     </snapshots>                 </pluginRepository>             </pluginRepositories>         </profile>     </profiles>     <activeProfiles>         <activeProfile>red-hat-enterprise-maven-repository</activeProfile>     </activeProfiles> </settings>
    • ---
    • Red Hat build of Quarkus

      I created Gradle Quarkus application with Quarkus CLI and tried to build it with Quarkus CLI and it failed over org.eclipse.parsson:parsson:1.1.5.redhat-00001.

       

      Creating and building same application with Maven works.

      Creating and building same Gradle application works with community version.

      This is regression of the QUARKUS-3439.

      Jenkins job ref.: https://main-jenkins-csb-quarkusqe.apps.ocp-c1.prod.psi.redhat.com/job/rhbq-3.2-rhel8-jdk17-baremetal-ts-jvm/jdk=openjdk-17,label=RHEL8%20&&%20large,scenario=root-modules/12/testReport/io.quarkus.ts.quarkus.cli/QuarkusCliCreateJvmApplicationIT/shouldCreateApplicationWithGradleOnJvm/

      > Task :quarkusGenerateCode FAILEDFAILURE: Build failed with an exception.* What went wrong:
      Execution failed for task ':quarkusGenerateCode'.
      > Could not resolve all dependencies for configuration ':detachedConfiguration2'.
         > Could not find jakarta.json:jakarta.json-api:2.1.3.redhat-00002.
           Searched in the following locations:
             - https://repo.maven.apache.org/maven2/jakarta/json/jakarta.json-api/2.1.3.redhat-00002/jakarta.json-api-2.1.3.redhat-00002.pom
             - file:/home/hudson/hudson_workspace/workspace/rhbq-3.2-rhel8-jdk17-baremetal-ts-jvm/e0e210f1/quarkus-test-suite/rh-quarkus-platform-3.2.10.GA-maven-repository/maven-repository/jakarta/json/jakarta.json-api/2.1.3.redhat-00002/jakarta.json-api-2.1.3.redhat-00002.pom
             - https://maven.repository.redhat.com/ga/jakarta/json/jakarta.json-api/2.1.3.redhat-00002/jakarta.json-api-2.1.3.redhat-00002.pom
           Required by:
               project : > io.quarkus:quarkus-resteasy-reactive-kotlin:3.2.10.Final-redhat-00003 > io.quarkus:quarkus-resteasy-reactive-common:3.2.10.Final-redhat-00003 > io.quarkus.resteasy.reactive:resteasy-reactive-common:3.2.10.Final-redhat-00003 > org.eclipse.parsson:parsson:1.1.5.redhat-00001* Try:
      > Run with --stacktrace option to get the stack trace.
      > Run with --info or --debug option to get more log output.
      > Run with --scan to get full insights.
      > Get more help at https://help.gradle.org.Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.BUILD FAILED in 5s
      2 actionable tasks: 1 executed, 1 up-to-date

            varjain@redhat.com Vardhman Jain
            rh-ee-mvavrik Michal Vavrik
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: