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

Cannot build Quarkus extensions with RHBQ 2.7.5 ER bits

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 2.7.5.GA, 2.7.5.ER3
    • 2.7.5.ER2
    • team/prod
    • None

      Cannot build Quarkus extensions with RHBQ 2.7.5 ER bits

      [ERROR] Failed to execute goal io.quarkus:quarkus-bootstrap-maven-plugin:2.7.5.Final-redhat-00004:extension-descriptor (default) on project app-metadata: Execution default of goal io.quarkus:quarkus-bootstrap-maven-plugin:2.7.5.Final-redhat-00004:extension-descriptor failed: Plugin io.quarkus:quarkus-bootstrap-maven-plugin:2.7.5.Final-redhat-00004 or one of its dependencies could not be resolved: Could not find artifact com.google.errorprone:error_prone_annotations:jar:2.2.0.redhat-00001 in central (https://repo.maven.apache.org/maven2) -> [Help 1] 

      error_prone_annotations:jar:2.2.0.redhat-00001 is needed by ^^^ command, but the maven repo contains error_prone_annotations:2.10.0.redhat-00001

      error_prone_annotations:jar:2.2.0.redhat-00001 is defined in com.google.guavaguava-parent, when I manually adjusted that file to use version 2.10.0.redhat-00001 I received green run.

      Proper solution: com.google.guavaguava-parent needs to be adjusted to use error_prone_annotations:2.10.0.redhat-00001

      Acceptable solution: add error_prone_annotations:jar:2.2.0.redhat-00001 and its dependencies into maven repo zip

      Reproducer:

      • get https://github.com/quarkus-qe/quarkus-openshift-test-suite/
      • run it with product bits
        • e.g. mvn clean package -DskipTests -Dmaven.repo.local=/Users/rsvoboda/Downloads/rh-quarkus-2.7.5.GA-maven-repository/maven-repository -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom -Dquarkus.platform.version=2.7.5.Final-redhat-00004 -Dversion.quarkus=2.7.5.Final-redhat-00004

      Another option is to generate custom extension using quarkus create extension, adjust pom.xml to use com.redhat.quarkus.platform:quarkus-bom:2.7.5.Final-redhat-00004 and com.redhat.quarkus.platform:quarkus-maven-plugin:2.7.5.Final-redhat-00004 and run mvn clean package -DskipTests -Dmaven.repo.local=/Users/rsvoboda/Downloads/rh-quarkus-2.7.5.GA-maven-repository/maven-repository

              sausingh@redhat.com Saumya Singh
              rsvoboda@redhat.com Rostislav Svoboda
              Michal Vavrik Michal Vavrik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: