-
Bug
-
Resolution: Done
-
Major
-
2.2.3.ER1, 2.2.3.GA
-
False
-
False
-
+
-
Upstream issue: https://github.com/quarkusio/quarkus/issues/22963
When creating a Quarkus application using the Maven plugin:
mvn com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.3.Final-redhat-00001:create -DplatformGroupId=com.redhat.quarkus.platform -DplatformArtifactId=quarkus-bom -Dextensions=oidc-client-reactive-filter
Note that we only wanted the `oidc-client-reactive-filter` extension is set.
However, the Maven plugin also addes the resteasy classic extension:
[INFO] Scanning for projects... [INFO] [INFO] ------------------< org.apache.maven:standalone-pom >------------------- [INFO] Building Maven Stub Project (No POM) 1 [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- quarkus-maven-plugin:2.2.3.Final-redhat-00001:create (default-cli) @ standalone-pom --- [INFO] ----------- [INFO] selected extensions: - io.quarkus:quarkus-oidc-client-reactive-filter [INFO] applying codestarts... [INFO] 📚 java 🔨 maven 📦 quarkus 📠config-properties 🔧 dockerfiles 🔧 maven-wrapper 🚀 resteasy-codestart
And making the application fails to start with:
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ jaxrs-client-reactive --- [INFO] Building jar: /home/hudson/hudson_workspace/workspace/rhbq-2.2-rhel8-jdk11-extensions-combinations-ts/test-suite/target/jaxrs-client-reactive/target/jaxrs-client-reactive-1.0.0-SNAPSHOT.jar [INFO] [INFO] --- quarkus-maven-plugin:2.2.3.Final-redhat-00001:build (default) @ jaxrs-client-reactive --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23.157 s [INFO] Finished at: 2021-09-20T09:47:40Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.3.Final-redhat-00001:build (default) on project jaxrs-client-reactive: Failed to build quarkus application: java.lang.IllegalArgumentException: Multiple matching properties for name "security.jaxrs.deny-unannotated-endpoints" property was matched by both public boolean io.quarkus.resteasy.runtime.JaxRsSecurityConfig.denyJaxRs and public boolean io.quarkus.resteasy.reactive.common.runtime.JaxRsSecurityConfig.denyJaxRs. This is likely because you have an incompatible combination of extensions that both define the same properties (e.g. including both reactive and blocking database extensions) -> [Help 1]
Moreover, the Maven plugin should offer a property to disable the Resteasy Classic addition by default.