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

Misleading message when a `-deployment` artifact is inaccessible for an extension

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 2.7.5.GA
    • None
    • team/eng
    • None
    • Hide
      $ ./mvnw quarkus:dev -Dmaven.repo.local=/home/ppalaga/Downloads/rh-quarkus-platform-2.2.3.SP1-maven-repository/maven-repository
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ---------------------< org.acme:code-with-quarkus >---------------------
      [INFO] Building code-with-quarkus 1.0.0-SNAPSHOT
      [INFO] --------------------------------[ jar ]---------------------------------
      [INFO] 
      [INFO] --- quarkus-maven-plugin:2.2.3.SP1-redhat-00001:dev (default-cli) @ code-with-quarkus ---
      [INFO] Invoking com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.3.SP1-redhat-00001:generate-code @ code-with-quarkus
      [WARNING] The POM for io.quarkus:quarkus-smallrye-reactive-messaging-amqp-deployment:jar:2.2.3.Final-redhat-00013 is missing, no dependency information available
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  2.811 s
      [INFO] Finished at: 2021-12-15T17:21:05+01:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.3.SP1-redhat-00001:dev (default-cli) on project code-with-quarkus: Quarkus code generation phase has failed: Failed to bootstrap the application: Failed to create the application model for org.acme:code-with-quarkus::jar:1.0.0-SNAPSHOT: Failed to inject extension deployment dependencies for org.acme:code-with-quarkus:jar:1.0.0-SNAPSHOT: Quarkus extension deployment artifact io.quarkus:quarkus-smallrye-reactive-messaging-amqp-deployment:jar:2.2.3.Final-redhat-00013 does not appear to depend on the corresponding runtime artifact io.quarkus:quarkus-smallrye-reactive-messaging-amqp:jar:2.2.3.Final-redhat-00013 -> [Help 1]
      

      Expected: the error message should state that io.quarkus:quarkus-smallrye-reactive-messaging-amqp-deployment:jar:2.2.3.Final-redhat-00013 is missing

      Actual: The message is making a false statement:

      io.quarkus:quarkus-smallrye-reactive-messaging-amqp-deployment:jar:2.2.3.Final-redhat-00013 does not appear to depend on the corresponding runtime artifact io.quarkus:quarkus-smallrye-reactive-messaging-amqp:jar:2.2.3.Final-redhat-00013

      Show
      Create an application depending on `quarkus-smallrye-reactive-messaging-amqp` Make sure that the build has only access to Maven Central and this zipped Maven repo https://download.eng.bos.redhat.com/rcm-guest/staging/quarkus/quarkus-platform/quarkus-platform-2.2.3.CR1/rh-quarkus-platform-2.2.3.CR1-maven-repository.zip Use the version of platform quarkus-bom available in the above repo, which is 2.2.3.SP1-redhat-00001 Note that io.quarkus:quarkus-smallrye-reactive-messaging-amqp-deployment:jar:2.2.3.Final-redhat-00013 is missing in the repo - it is mistake solved in QUARKUS-1599 Build the app: $ ./mvnw quarkus:dev -Dmaven.repo.local=/home/ppalaga/Downloads/rh-quarkus-platform-2.2.3.SP1-maven-repository/maven-repository [INFO] Scanning for projects... [INFO] [INFO] ---------------------< org.acme:code-with-quarkus >--------------------- [INFO] Building code-with-quarkus 1.0.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- quarkus-maven-plugin:2.2.3.SP1-redhat-00001:dev ( default -cli) @ code-with-quarkus --- [INFO] Invoking com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.3.SP1-redhat-00001:generate-code @ code-with-quarkus [WARNING] The POM for io.quarkus:quarkus-smallrye-reactive-messaging-amqp-deployment:jar:2.2.3.Final-redhat-00013 is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.811 s [INFO] Finished at: 2021-12-15T17:21:05+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.3.SP1-redhat-00001:dev ( default -cli) on project code-with-quarkus: Quarkus code generation phase has failed: Failed to bootstrap the application: Failed to create the application model for org.acme:code-with-quarkus::jar:1.0.0-SNAPSHOT: Failed to inject extension deployment dependencies for org.acme:code-with-quarkus:jar:1.0.0-SNAPSHOT: Quarkus extension deployment artifact io.quarkus:quarkus-smallrye-reactive-messaging-amqp-deployment:jar:2.2.3.Final-redhat-00013 does not appear to depend on the corresponding runtime artifact io.quarkus:quarkus-smallrye-reactive-messaging-amqp:jar:2.2.3.Final-redhat-00013 -> [Help 1] Expected: the error message should state that io.quarkus:quarkus-smallrye-reactive-messaging-amqp-deployment:jar:2.2.3.Final-redhat-00013 is missing Actual: The message is making a false statement: io.quarkus:quarkus-smallrye-reactive-messaging-amqp-deployment:jar:2.2.3.Final-redhat-00013 does not appear to depend on the corresponding runtime artifact io.quarkus:quarkus-smallrye-reactive-messaging-amqp:jar:2.2.3.Final-redhat-00013

    Attachments

      Activity

        People

          olubyans@redhat.com Alexey Loubyansky
          ppalaga Peter Palaga
          Votes:
          0 Vote for this issue
          Watchers:
          3 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved: