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

resteasy-codestart and resteasy extension added when creating project with resteasy-reactive-jaxb

    XMLWordPrintable

Details

    • Hide
      mvn -Dmaven.repo.local=.../rh-quarkus-2.7.5.GA-maven-repository/maven-repository -Dquarkus-plugin.version=2.7.5.Final-redhat-00004 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom com.redhat.quarkus.platform:quarkus-maven-plugin:2.7.5.Final-redhat-00004:create -DprojectGroupId=io.quarkus.qe -DprojectArtifactId=resteasy-reactive-jaxb -DprojectVersion=1.0.0-SNAPSHOT -DplatformGroupId=com.redhat.quarkus.platform -DplatformArtifactId=quarkus-bom -Dextensions=resteasy-reactive-jaxb -DquarkusRegistryClient=false
      
      cd ./resteasy-reactive-jaxb/
      
      mvn -Dmaven.repo.local=.../rh-quarkus-2.7.5.GA-maven-repository/maven-repository -Dquarkus-plugin.version=2.7.5.Final-redhat-00004 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom package
      
      Show
      mvn -Dmaven.repo. local =.../rh-quarkus-2.7.5.GA-maven-repository/maven-repository -Dquarkus-plugin.version=2.7.5.Final-redhat-00004 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom com.redhat.quarkus.platform:quarkus-maven-plugin:2.7.5.Final-redhat-00004:create -DprojectGroupId=io.quarkus.qe -DprojectArtifactId=resteasy-reactive-jaxb -DprojectVersion=1.0.0-SNAPSHOT -DplatformGroupId=com.redhat.quarkus.platform -DplatformArtifactId=quarkus-bom -Dextensions=resteasy-reactive-jaxb -DquarkusRegistryClient=false cd ./resteasy-reactive-jaxb/ mvn -Dmaven.repo. local =.../rh-quarkus-2.7.5.GA-maven-repository/maven-repository -Dquarkus-plugin.version=2.7.5.Final-redhat-00004 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom package
    • +
    • ---

    Description

      GH issue: https://github.com/quarkusio/quarkus/issues/24818.

      Creating an app with resteasy-reactive-jaxb:

      -----------
      selected extensions: 
      - io.quarkus:quarkus-resteasy-reactive-jaxb
      
      
      applying codestarts...
      📚  java
      🔨  maven
      📦  quarkus
      📝  config-properties
      🔧  dockerfiles
      🔧  maven-wrapper
      🚀  resteasy-codestart
      
      -----------
      

      pom.xml:

      ...
        <dependencies>
          <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-resteasy-reactive-jaxb</artifactId>
          </dependency>
          <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-arc</artifactId>
          </dependency>
          <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-resteasy</artifactId>
          </dependency>
          <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-junit5</artifactId>
            <scope>test</scope>
          </dependency>
          <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>rest-assured</artifactId>
            <scope>test</scope>
          </dependency>
        </dependencies>
      ...
      

      Combination of resteasy-reactive-jaxb and resteasy then causes build failure:

      [ERROR] io.quarkus.qe.GreetingResourceTest.testHelloEndpoint  Time elapsed: 0.007 s  <<< ERROR!
      java.lang.RuntimeException: 
      java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
      	[error]: Build step io.quarkus.deployment.steps.CapabilityAggregationStep#aggregateCapabilities threw an exception: java.lang.IllegalStateException: Please make sure there is only one provider of the following capabilities:
      capability io.quarkus.rest is provided by:
        - io.quarkus:quarkus-resteasy-reactive::jar:2.7.5.Final-redhat-00004
        - io.quarkus:quarkus-resteasy::jar:2.7.5.Final-redhat-00004
      	at io.quarkus.deployment.steps.CapabilityAggregationStep.aggregateCapabilities(CapabilityAggregationStep.java:147)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:882)
      	at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
      	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
      	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      	at org.jboss.threads.JBossThread.run(JBossThread.java:501)
      

      Attachments

        Activity

          People

            adamevin andy damevin
            rhn-support-jsmrcka Josef Smrcka (Inactive)
            Josef Smrcka Josef Smrcka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: