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

[3.15.1.CR1] Productized RHBQ TLS CLI plugin cannot be discovered by Quarkus CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 3.15.NEXT
    • 3.15-Interstellar.GA, 3.15.1.CR1
    • team/eng
    • False
    • None
    • False
    • Release Notes
    • Release Notes
    • +
    • Known Issue
    • Hide

      Configure JBang to use maven.repository.redhat.com by placing jbang.properties file with the following contents either in the project's root directory (will be used when Quarkus CLI is used in that project) or in ~/.jbang directory for global configuration:

      run.repos=central,https://maven.repository.redhat.com/ga/
      

      In case the user has JBang installed, the property can be configured globally with the following command:

      jbang config set run.repos central,https://maven.repository.redhat.com/ga/
      
      Show
      Configure JBang to use maven.repository.redhat.com by placing jbang.properties file with the following contents either in the project's root directory (will be used when Quarkus CLI is used in that project) or in ~/.jbang directory for global configuration: run.repos=central,https: //maven.repository.redhat.com/ga/ In case the user has JBang installed, the property can be configured globally with the following command: jbang config set run.repos central,https: //maven.repository.redhat.com/ga/
    • Hide

      acquire the product Maven repository zip file and unzip it, then

      wget -O /home/hudson/.m2/settings.xml https://gitlab.cee.redhat.com/quarkus-qe/jenkins-jobs/-/raw/main/jobs/rhbq/files/settings.xml
      
      unzip -qo quarkus-maven-repo.zip
      
      sed -i -e 's|/path_to_repo|$PWD/rh-quarkus-platform-3.15.1.GA-maven-repository/maven-repository/|' /home/hudson/.m2/settings.xml
      
      mkdir -p /home/hudson/.quarkus/
      
      cat <<EOF > ~/.quarkus/config.yaml
      ---
      registries:
      - registry-3-15-1-redhat-00002.apps.ocp-c1.prod.psi.redhat.com:
          update-policy: "always"
          descriptor:
            artifact: "com.redhat.psi.prod.ocp-c1.apps.registry-3-15-1-redhat-00002:quarkus-registry-descriptor::json:1.0-SNAPSHOT"
          maven:
            repository:
              url: "https://registry-3-15-1-redhat-00002.apps.ocp-c1.prod.psi.redhat.com/maven"
      - registry.quarkus.redhat.com
      - registry.quarkus.io
      EOF
      
      quarkus create app reproducer --stream=3.15 -x=quarkus-rest -Dquarkus.analytics.disabled=true
      
      cd reproducer
      
      quarkus tls generate-quarkus-ca --truststore -r --verbose 
      
      Show
      acquire the product Maven repository zip file and unzip it, then wget -O /home/hudson/.m2/settings.xml https: //gitlab.cee.redhat.com/quarkus-qe/jenkins-jobs/-/raw/main/jobs/rhbq/files/settings.xml unzip -qo quarkus-maven-repo.zip sed -i -e 's|/path_to_repo|$PWD/rh-quarkus-platform-3.15.1.GA-maven-repository/maven-repository/|' /home/hudson/.m2/settings.xml mkdir -p /home/hudson/.quarkus/ cat <<EOF > ~/.quarkus/config.yaml --- registries: - registry-3-15-1-redhat-00002.apps.ocp-c1.prod.psi.redhat.com:     update-policy: "always"     descriptor:       artifact: "com.redhat.psi.prod.ocp-c1.apps.registry-3-15-1-redhat-00002:quarkus-registry-descriptor::json:1.0-SNAPSHOT"     maven:       repository:         url: "https: //registry-3-15-1-redhat-00002.apps.ocp-c1.prod.psi.redhat.com/maven" - registry.quarkus.redhat.com - registry.quarkus.io EOF quarkus create app reproducer --stream=3.15 -x=quarkus- rest -Dquarkus.analytics.disabled= true cd reproducer quarkus tls generate-quarkus-ca --truststore -r --verbose
    • ---

      After QUARKUS-5048 TLS Plugin is now productized, that means when Quarkus CLI is used in the RHBQ application, it tries to use productized version of the plugin and fails because plugin repositories configured in the ~/.m2/ settings.xml are ignored and productized plugin is looked up in the Maven central, where it is missing. And Quarkus does not configure additional repositories as specified in the reference https://www.jbang.dev/documentation/guide/latest/dependencies.html#repositories.

       

      Error message that user receives when tries to use the TLS command:

      [jbang] Resolving dependencies...
      [jbang]    io.quarkus:quarkus-tls-registry-cli:3.15.1.redhat-00003
      [jbang] [ERROR] Could not resolve dependencies: The following artifacts could not be resolved: io.quarkus:quarkus-tls-registry-cli:jar:3.15.1.redhat-00003 (absent): Could not find artifact io.quarkus:quarkus-tls-registry-cli:jar:3.15.1.redhat-00003 in central (https://repo1.maven.org/maven2/)
      [jbang] Run with --verbose for more details
      [hudson@vavrik-quarkus-qe-debug tls-command-test]$ quarkus tls generate-quarkus-ca --truststore -r --verbose
      /home/hudson/.jbang/bin/jbang io.quarkus:quarkus-tls-registry-cli:3.15.1.redhat-00003 generate-quarkus-ca --truststore -r --verbose[jbang] Resolving dependencies...
      [jbang]    io.quarkus:quarkus-tls-registry-cli:3.15.1.redhat-00003
      [jbang] [ERROR] Could not resolve dependencies: The following artifacts could not be resolved: io.quarkus:quarkus-tls-registry-cli:jar:3.15.1.redhat-00003 (absent): Could not find artifact io.quarkus:quarkus-tls-registry-cli:jar:3.15.1.redhat-00003 in central (https://repo1.maven.org/maven2/)
      [jbang] Run with --verbose for more details
       

              paul.robinson@redhat.com Paul Robinson
              rh-ee-mvavrik Michal Vavrik
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: