quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.58k stars 2.63k forks source link

ANTLR versions mismatched when building natively (MongoDB/Panache related?) #19140

Closed kjq closed 3 years ago

kjq commented 3 years ago

Describe the bug

I've seen this for a while now and it does not seem to be affecting my native builds but thought I would ask the question:

ANTLR Tool version 4.7.2 used for code generation does not match the current runtime version 4.8ANTLR Tool version 4.7.2 used for code generation does not match the current runtime version 4.819:28:17,212 INFO [org.jbo.threads] JBoss Threads version 3.4.0.Final

Per Loic request filing this issue.

I already saw this, and it's reproducible inside our integration tests. It comes from the MongoDB with Panacge extension. Can you open an issue so I don't forget to have a look please ;)

Reference on Google Groups: [https://groups.google.com/g/quarkus-dev/c/Trx7gKblgr4]

Expected behavior

ANTLR works properly when building natively and no message appears

Actual behavior

ANTLR version mismatch. Does not seem to harm the native executable.

Status: Image is up to date for quay.io/quarkus/ubi-quarkus-native-image:21.1-java11 quay.io/quarkus/ubi-quarkus-native-image:21.1-java11 [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on GraalVM 21.1.0 Java 11 CE (Java Version 11.0.11+8-jvmci-21.1-b05) [INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildRunner] docker run --env LANG=C --rm --user 1000:1000 -v /home/xxx/work/query/services/drill/target/myproject-5.0.0-SNAPSHOT-native-image-source-jar:/project:z quay.io/quarkus/ubi-quarkus-native-image:21.1-java11 -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-DCoordinatorEnvironmentBean.transactionStatusManagerEnable=false -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=3 -J-Duser.language=en -J-Duser.country= -J-Dfile.encoding=UTF-8 --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -jar myproject-5.0.0-SNAPSHOT-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http,https -H:NativeLinkerOption=-no-pie -H:-UseServiceLoaderFeature -H:+StackTrace myproject-5.0.0-SNAPSHOT-runner [myproject-5.0.0-SNAPSHOT-runner:25] classlist: 3,980.35 ms, 1.19 GB [myproject-5.0.0-SNAPSHOT-runner:25] (cap): 512.44 ms, 1.19 GB [myproject-5.0.0-SNAPSHOT-runner:25] setup: 2,329.49 ms, 1.19 GB ANTLR Tool version 4.7.2 used for code generation does not match the current runtime version 4.8ANTLR Tool version 4.7.2 used for code generation does not match the current runtime version 4.819:28:17,212 INFO [org.jbo.threads] JBoss Threads version 3.4.0.Final [myproject-5.0.0-SNAPSHOT-runner:25] (clinit): 864.97 ms, 4.84 GB [myproject-5.0.0-SNAPSHOT-runner:25] (typeflow): 17,501.74 ms, 4.84 GB [myproject-5.0.0-SNAPSHOT-runner:25] (objects): 38,640.83 ms, 4.84 GB [myproject-5.0.0-SNAPSHOT-runner:25] (features): 1,302.03 ms, 4.84 GB [myproject-5.0.0-SNAPSHOT-runner:25] analysis: 60,495.07 ms, 4.84 GB [myproject-5.0.0-SNAPSHOT-runner:25] universe: 2,373.33 ms, 4.84 GB [myproject-5.0.0-SNAPSHOT-runner:25] (parse): 9,679.25 ms, 6.04 GB [myproject-5.0.0-SNAPSHOT-runner:25] (inline): 4,326.96 ms, 6.27 GB [myproject-5.0.0-SNAPSHOT-runner:25] (compile): 42,372.59 ms, 7.37 GB [myproject-5.0.0-SNAPSHOT-runner:25] compile: 59,354.47 ms, 7.37 GB [myproject-5.0.0-SNAPSHOT-runner:25] image: 7,603.22 ms, 7.23 GB [myproject-5.0.0-SNAPSHOT-runner:25] write: 874.66 ms, 7.23 GB

How to Reproduce?

  1. Create a project the MongoDB Panache extension
  2. Try to build the image natively

Output of uname -a or ver

No response

Output of java -version

11 (15 on OS)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.0.3.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Results of quarkus:dependency-tree:

[INFO] --- quarkus-maven-plugin:2.0.3.Final:dependency-tree (default-cli) @ myproject --- [INFO] Quarkus application PROD mode build dependency tree: [INFO] com.mygroup:myproject:pom:5.0.0-SNAPSHOT [INFO] ├─ com.mygroup:platform-mongo:jar:5.0.65-SNAPSHOT (compile) [INFO] │ └─ io.quarkus:quarkus-mongodb-panache-deployment:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-mongodb-panache-common-deployment:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-mongodb-panache-common:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ io.quarkus:quarkus-panacheql:jar:2.0.3.Final (compile) [INFO] │ │ │ │ └─ org.antlr:antlr4-runtime:jar:4.8 (compile) [INFO] │ │ │ └─ io.quarkus:quarkus-narayana-jta:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ io.smallrye:smallrye-context-propagation-jta:jar:1.2.0 (compile) [INFO] │ │ │ ├─ io.smallrye.reactive:smallrye-reactive-converter-api:jar:2.6.0 (compile) [INFO] │ │ │ ├─ io.smallrye.reactive:smallrye-reactive-converter-mutiny:jar:2.6.0 (compile) [INFO] │ │ │ ├─ org.jboss.narayana.jta:narayana-jta:jar:5.11.2.Final (compile) [INFO] │ │ │ │ ├─ org.jboss:jboss-transaction-spi:jar:7.6.0.Final (compile) [INFO] │ │ │ │ └─ org.jboss.spec.javax.resource:jboss-connector-api_1.7_spec:jar:1.0.0.Final (compile) [INFO] │ │ │ └─ org.jboss.narayana.jts:narayana-jts-integration:jar:5.11.2.Final (compile) [INFO] │ │ └─ io.quarkus:quarkus-narayana-jta-deployment:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-jsonb-spi:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-jackson-spi:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-panache-common-deployment:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-panache-common:jar:2.0.3.Final (compile) [INFO] │ │ └─ jakarta.validation:jakarta.validation-api:jar:2.0.2 (compile) [INFO] │ ├─ io.quarkus:quarkus-mongodb-client-deployment:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-mutiny-reactive-streams-operators-deployment:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ io.quarkus:quarkus-mutiny-reactive-streams-operators:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ org.eclipse.microprofile.reactive-streams-operators:microprofile-reactive-streams-operators-api:jar:1.0.1 (compile) [INFO] │ │ │ ├─ org.eclipse.microprofile.reactive-streams-operators:microprofile-reactive-streams-operators-core:jar:1.0.1 (compile) [INFO] │ │ │ └─ io.smallrye.reactive:mutiny-reactive-streams-operators:jar:0.17.0 (compile) [INFO] │ │ ├─ io.quarkus:quarkus-mongodb-client:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ org.mongodb:mongodb-driver-sync:jar:4.2.3 (compile) [INFO] │ │ │ │ ├─ org.mongodb:bson:jar:4.2.3 (compile) [INFO] │ │ │ │ └─ org.mongodb:mongodb-driver-core:jar:4.2.3 (compile) [INFO] │ │ │ ├─ org.mongodb:mongodb-driver-reactivestreams:jar:4.2.3 (compile) [INFO] │ │ │ │ └─ io.projectreactor:reactor-core:jar:3.4.5 (runtime) [INFO] │ │ │ └─ org.mongodb:mongodb-crypt:jar:1.2.0 (compile) [INFO] │ │ └─ org.testcontainers:mongodb:jar:1.15.3 (compile) [INFO] │ └─ io.quarkus:quarkus-mongodb-panache:jar:2.0.3.Final (compile) [INFO] ├─ com.mygroup:platform-redis:jar:5.0.65-SNAPSHOT (compile) [INFO] │ └─ io.quarkus:quarkus-redis-client-deployment:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-vertx-deployment:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-netty-deployment:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ io.quarkus:quarkus-netty:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ io.netty:netty-codec:jar:4.1.65.Final (compile) [INFO] │ │ └─ io.quarkus:quarkus-vertx:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.smallrye.common:smallrye-common-annotation:jar:1.6.0 (compile) [INFO] │ │ └─ io.smallrye:smallrye-fault-tolerance-vertx:jar:5.1.0 (compile) [INFO] │ ├─ io.quarkus:quarkus-redis-client:jar:2.0.3.Final (compile) [INFO] │ │ └─ io.smallrye.reactive:smallrye-mutiny-vertx-redis-client:jar:2.7.0 (compile) [INFO] │ │ └─ io.vertx:vertx-redis-client:jar:4.1.0 (compile) [INFO] │ ├─ org.testcontainers:testcontainers:jar:1.15.3 (compile) [INFO] │ │ ├─ org.slf4j:slf4j-api:jar:1.7.30 (compile) [INFO] │ │ ├─ org.apache.commons:commons-compress:jar:1.20 (compile) [INFO] │ │ ├─ org.rnorth.duct-tape:duct-tape:jar:1.0.8 (compile) [INFO] │ │ ├─ org.rnorth.visible-assertions:visible-assertions:jar:2.1.2 (compile) [INFO] │ │ │ └─ net.java.dev.jna:jna:jar:5.3.1 (compile) [INFO] │ │ ├─ com.github.docker-java:docker-java-api:jar:3.2.8 (compile) [INFO] │ │ └─ com.github.docker-java:docker-java-transport-zerodep:jar:3.2.8 (compile) [INFO] │ │ └─ com.github.docker-java:docker-java-transport:jar:3.2.8 (compile) [INFO] │ └─ io.quarkus:quarkus-junit4-mock:jar:2.0.3.Final (compile) [INFO] ├─ com.mygroup:platform-security:jar:5.0.65-SNAPSHOT (compile) [INFO] │ └─ io.quarkus:quarkus-keycloak-authorization-deployment:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-oidc-deployment:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-oidc:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ io.quarkus:quarkus-security:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ io.quarkus:quarkus-oidc-common:jar:2.0.3.Final (compile) [INFO] │ │ │ │ └─ io.quarkus:quarkus-smallrye-jwt-build:jar:2.0.3.Final (compile) [INFO] │ │ │ │ └─ io.smallrye:smallrye-jwt-build:jar:3.2.0 (compile) [INFO] │ │ │ └─ io.smallrye:smallrye-jwt:jar:3.2.0 (compile) [INFO] │ │ │ ├─ org.eclipse.microprofile.jwt:microprofile-jwt-auth-api:jar:1.2 (compile) [INFO] │ │ │ ├─ org.bitbucket.b_c:jose4j:jar:0.7.7 (compile) [INFO] │ │ │ └─ io.smallrye:smallrye-jwt-common:jar:3.2.0 (compile) [INFO] │ │ ├─ io.quarkus:quarkus-oidc-common-deployment:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ io.quarkus:quarkus-smallrye-jwt-build-deployment:jar:2.0.3.Final (compile) [INFO] │ │ └─ io.quarkus:quarkus-security-deployment:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-apache-httpclient-deployment:jar:2.0.3.Final (compile) [INFO] │ │ └─ io.quarkus:quarkus-apache-httpclient:jar:2.0.3.Final (compile) [INFO] │ └─ io.quarkus:quarkus-keycloak-authorization:jar:2.0.3.Final (compile) [INFO] │ ├─ org.keycloak:keycloak-adapter-core:jar:14.0.0 (compile) [INFO] │ ├─ org.keycloak:keycloak-core:jar:14.0.0 (compile) [INFO] │ │ ├─ org.keycloak:keycloak-common:jar:14.0.0 (compile) [INFO] │ │ │ └─ com.sun.activation:jakarta.activation:jar:1.2.1 (compile) [INFO] │ │ ├─ org.bouncycastle:bcprov-jdk15on:jar:1.68 (compile) [INFO] │ │ └─ org.bouncycastle:bcpkix-jdk15on:jar:1.68 (compile) [INFO] │ ├─ org.keycloak:keycloak-adapter-spi:jar:14.0.0 (compile) [INFO] │ ├─ org.keycloak:keycloak-authz-client:jar:14.0.0 (compile) [INFO] │ │ └─ org.apache.httpcomponents:httpclient:jar:4.5.13 (compile) [INFO] │ │ ├─ org.apache.httpcomponents:httpcore:jar:4.4.14 (compile) [INFO] │ │ └─ commons-codec:commons-codec:jar:1.15 (compile) [INFO] │ └─ org.jboss.logging:commons-logging-jboss-logging:jar:1.0.0.Final (compile) [INFO] ├─ io.quarkus:quarkus-rest-client-reactive-jackson-deployment:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-resteasy-reactive-jackson-common-deployment:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-resteasy-reactive-common-deployment:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ io.quarkus.resteasy.reactive:resteasy-reactive-common-processor:jar:2.0.3.Final (compile) [INFO] │ │ │ │ └─ io.quarkus.resteasy.reactive:resteasy-reactive-common:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ io.quarkus:quarkus-resteasy-reactive-common:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-jackson-deployment:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ io.quarkus:quarkus-jackson:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.12.4 (compile) [INFO] │ │ │ ├─ com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.12.4 (compile) [INFO] │ │ │ └─ com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.12.4 (compile) [INFO] │ │ └─ io.quarkus:quarkus-resteasy-reactive-jackson-common:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-rest-client-reactive-deployment:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-rest-client-reactive:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ io.quarkus:quarkus-jaxrs-client-reactive:jar:2.0.3.Final (compile) [INFO] │ │ │ │ └─ io.quarkus.resteasy.reactive:resteasy-reactive-client:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ org.eclipse.microprofile.rest.client:microprofile-rest-client-api:jar:2.0 (compile) [INFO] │ │ └─ io.quarkus:quarkus-jaxrs-client-reactive-deployment:jar:2.0.3.Final (compile) [INFO] │ │ └─ io.quarkus.resteasy.reactive:resteasy-reactive-client-processor:jar:2.0.3.Final (compile) [INFO] │ └─ io.quarkus:quarkus-rest-client-reactive-jackson:jar:2.0.3.Final (compile) [INFO] ├─ io.quarkus:quarkus-resteasy-reactive-jackson-deployment:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-resteasy-reactive-deployment:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus.resteasy.reactive:resteasy-reactive-processor:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ io.quarkus.resteasy.reactive:resteasy-reactive:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec:jar:2.0.1.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-resteasy-reactive-kotlin:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ io.quarkus.resteasy.reactive:resteasy-reactive-vertx:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-resteasy-reactive:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-resteasy-reactive-spi-deployment:jar:2.0.3.Final (compile) [INFO] │ │ └─ io.quarkus:quarkus-security-spi:jar:2.0.3.Final (compile) [INFO] │ │ └─ io.quarkus.security:quarkus-security:jar:1.1.4.Final (compile) [INFO] │ └─ io.quarkus:quarkus-resteasy-reactive-jackson:jar:2.0.3.Final (compile) [INFO] ├─ io.smallrye.reactive:smallrye-mutiny-vertx-web-client:jar:2.7.0 (compile) [INFO] │ ├─ io.vertx:vertx-web-client:jar:4.1.0 (compile) [INFO] │ │ ├─ io.vertx:vertx-web-common:jar:4.1.0 (compile) [INFO] │ │ ├─ io.vertx:vertx-auth-common:jar:4.1.0 (compile) [INFO] │ │ └─ io.vertx:vertx-core:jar:4.1.0 (compile) [INFO] │ │ ├─ io.netty:netty-common:jar:4.1.65.Final (compile) [INFO] │ │ ├─ io.netty:netty-buffer:jar:4.1.65.Final (compile) [INFO] │ │ ├─ io.netty:netty-transport:jar:4.1.65.Final (compile) [INFO] │ │ ├─ io.netty:netty-handler:jar:4.1.65.Final (compile) [INFO] │ │ ├─ io.netty:netty-handler-proxy:jar:4.1.65.Final (compile) [INFO] │ │ │ └─ io.netty:netty-codec-socks:jar:4.1.65.Final (compile) [INFO] │ │ ├─ io.netty:netty-codec-http:jar:4.1.65.Final (compile) [INFO] │ │ ├─ io.netty:netty-codec-http2:jar:4.1.65.Final (compile) [INFO] │ │ ├─ io.netty:netty-resolver:jar:4.1.65.Final (compile) [INFO] │ │ └─ io.netty:netty-resolver-dns:jar:4.1.65.Final (compile) [INFO] │ │ └─ io.netty:netty-codec-dns:jar:4.1.65.Final (compile) [INFO] │ ├─ io.smallrye.reactive:smallrye-mutiny-vertx-core:jar:2.7.0 (compile) [INFO] │ │ ├─ io.smallrye.reactive:mutiny:jar:0.17.0 (compile) [INFO] │ │ │ └─ org.reactivestreams:reactive-streams:jar:1.0.3 (compile) [INFO] │ │ ├─ io.smallrye.reactive:smallrye-mutiny-vertx-runtime:jar:2.7.0 (compile) [INFO] │ │ └─ io.smallrye.reactive:vertx-mutiny-generator:jar:2.7.0 (compile) [INFO] │ │ └─ io.vertx:vertx-codegen:jar:4.1.0 (compile) [INFO] │ ├─ io.smallrye.reactive:smallrye-mutiny-vertx-auth-common:jar:2.7.0 (compile) [INFO] │ └─ io.smallrye.reactive:smallrye-mutiny-vertx-web-common:jar:2.7.0 (compile) [INFO] ├─ io.quarkus:quarkus-arc-deployment:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-core-deployment:jar:2.0.3.Final (compile) [INFO] │ │ ├─ org.aesh:readline:jar:2.1 (compile) [INFO] │ │ │ └─ org.fusesource.jansi:jansi:jar:1.18 (compile) [INFO] │ │ ├─ org.apache.commons:commons-lang3:jar:3.12.0 (compile) [INFO] │ │ ├─ org.wildfly.common:wildfly-common:jar:1.5.4.Final-format-001 (compile) [INFO] │ │ ├─ io.quarkus.gizmo:gizmo:jar:1.0.9.Final (compile) [INFO] │ │ │ └─ org.ow2.asm:asm-util:jar:9.1 (compile) [INFO] │ │ │ ├─ org.ow2.asm:asm-tree:jar:9.1 (compile) [INFO] │ │ │ └─ org.ow2.asm:asm-analysis:jar:9.1 (compile) [INFO] │ │ ├─ org.jboss:jandex:jar:2.3.0.Final (compile) [INFO] │ │ ├─ org.ow2.asm:asm:jar:9.1 (compile) [INFO] │ │ ├─ io.quarkus:quarkus-development-mode-spi:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-class-change-agent:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-bootstrap-core:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ io.quarkus:quarkus-bootstrap-app-model:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ io.quarkus:quarkus-bootstrap-maven-resolver:jar:2.0.3.Final (compile) [INFO] │ │ │ │ ├─ org.apache.maven:maven-embedder:jar:3.8.1 (compile) [INFO] │ │ │ │ │ ├─ org.apache.maven:maven-settings:jar:3.8.1 (compile) [INFO] │ │ │ │ │ ├─ org.apache.maven:maven-core:jar:3.8.1 (compile) [INFO] │ │ │ │ │ │ ├─ org.apache.maven:maven-artifact:jar:3.8.1 (compile) [INFO] │ │ │ │ │ │ └─ org.codehaus.plexus:plexus-component-annotations:jar:2.1.0 (compile) [INFO] │ │ │ │ │ ├─ org.apache.maven:maven-plugin-api:jar:3.8.1 (compile) [INFO] │ │ │ │ │ ├─ org.apache.maven:maven-model:jar:3.8.1 (compile) [INFO] │ │ │ │ │ ├─ org.apache.maven:maven-model-builder:jar:3.8.1 (compile) [INFO] │ │ │ │ │ ├─ org.apache.maven:maven-builder-support:jar:3.8.1 (compile) [INFO] │ │ │ │ │ ├─ org.apache.maven.resolver:maven-resolver-api:jar:1.6.2 (compile) [INFO] │ │ │ │ │ ├─ org.apache.maven.resolver:maven-resolver-util:jar:1.6.2 (compile) [INFO] │ │ │ │ │ ├─ org.apache.maven.shared:maven-shared-utils:jar:3.3.3 (compile) [INFO] │ │ │ │ │ │ └─ commons-io:commons-io:jar:2.8.0 (compile) [INFO] │ │ │ │ │ ├─ com.google.inject:guice:jar:no_aop:4.2.1 (compile) [INFO] │ │ │ │ │ ├─ org.codehaus.plexus:plexus-utils:jar:3.2.1 (compile) [INFO] │ │ │ │ │ ├─ org.codehaus.plexus:plexus-classworlds:jar:2.6.0 (compile) [INFO] │ │ │ │ │ └─ commons-cli:commons-cli:jar:1.4 (compile) [INFO] │ │ │ │ ├─ org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.4 (compile) [INFO] │ │ │ │ ├─ org.apache.maven:maven-settings-builder:jar:3.8.1 (compile) [INFO] │ │ │ │ │ ├─ org.codehaus.plexus:plexus-interpolation:jar:1.25 (compile) [INFO] │ │ │ │ │ └─ org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4 (compile) [INFO] │ │ │ │ │ └─ org.sonatype.plexus:plexus-cipher:jar:1.4 (compile) [INFO] │ │ │ │ ├─ org.apache.maven:maven-resolver-provider:jar:3.8.1 (compile) [INFO] │ │ │ │ │ ├─ org.apache.maven:maven-repository-metadata:jar:3.8.1 (compile) [INFO] │ │ │ │ │ ├─ org.apache.maven.resolver:maven-resolver-spi:jar:1.6.2 (compile) [INFO] │ │ │ │ │ └─ org.apache.maven.resolver:maven-resolver-impl:jar:1.6.2 (compile) [INFO] │ │ │ │ ├─ org.apache.maven.resolver:maven-resolver-connector-basic:jar:1.6.2 (compile) [INFO] │ │ │ │ ├─ org.apache.maven.resolver:maven-resolver-transport-wagon:jar:1.6.2 (compile) [INFO] │ │ │ │ ├─ org.apache.maven.wagon:wagon-http:jar:3.4.3 (compile) [INFO] │ │ │ │ │ ├─ org.apache.maven.wagon:wagon-http-shared:jar:3.4.3 (compile) [INFO] │ │ │ │ │ │ └─ org.jsoup:jsoup:jar:1.12.1 (compile) [INFO] │ │ │ │ │ └─ org.apache.maven.wagon:wagon-provider-api:jar:3.4.3 (compile) [INFO] │ │ │ │ └─ org.apache.maven.wagon:wagon-file:jar:3.4.3 (compile) [INFO] │ │ │ ├─ io.quarkus:quarkus-bootstrap-gradle-resolver:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ io.smallrye.common:smallrye-common-io:jar:1.6.0 (compile) [INFO] │ │ ├─ io.quarkus:quarkus-devtools-utilities:jar:2.0.3.Final (compile) [INFO] │ │ ├─ org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.4 (runtime) [INFO] │ │ ├─ io.quarkus:quarkus-core:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ jakarta.inject:jakarta.inject-api:jar:1.0 (compile) [INFO] │ │ │ ├─ io.quarkus:quarkus-ide-launcher:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ io.smallrye.config:smallrye-config:jar:2.4.2 (compile) [INFO] │ │ │ │ └─ io.smallrye.config:smallrye-config-core:jar:2.4.2 (compile) [INFO] │ │ │ │ ├─ io.smallrye.common:smallrye-common-expression:jar:1.6.0 (compile) [INFO] │ │ │ │ │ └─ io.smallrye.common:smallrye-common-function:jar:1.6.0 (compile) [INFO] │ │ │ │ └─ io.smallrye.common:smallrye-common-classloader:jar:1.6.0 (compile) [INFO] │ │ │ ├─ org.jboss.logmanager:jboss-logmanager-embedded:jar:1.0.9 (compile) [INFO] │ │ │ ├─ org.jboss.logging:jboss-logging-annotations:jar:2.2.1.Final (compile) [INFO] │ │ │ ├─ org.jboss.threads:jboss-threads:jar:3.4.0.Final (compile) [INFO] │ │ │ ├─ org.jboss.slf4j:slf4j-jboss-logmanager:jar:1.1.0.Final (compile) [INFO] │ │ │ └─ io.quarkus:quarkus-bootstrap-runner:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-builder:jar:2.0.3.Final (compile) [INFO] │ │ ├─ org.graalvm.sdk:graal-sdk:jar:21.1.0 (compile) [INFO] │ │ ├─ org.junit.platform:junit-platform-launcher:jar:1.7.2 (compile) [INFO] │ │ │ ├─ org.apiguardian:apiguardian-api:jar:1.1.0 (compile) [INFO] │ │ │ └─ org.junit.platform:junit-platform-engine:jar:1.7.2 (compile) [INFO] │ │ │ ├─ org.opentest4j:opentest4j:jar:1.2.0 (compile) [INFO] │ │ │ └─ org.junit.platform:junit-platform-commons:jar:1.7.2 (compile) [INFO] │ │ └─ org.junit.jupiter:junit-jupiter:jar:5.7.2 (compile) [INFO] │ │ ├─ org.junit.jupiter:junit-jupiter-api:jar:5.7.2 (compile) [INFO] │ │ ├─ org.junit.jupiter:junit-jupiter-params:jar:5.7.2 (compile) [INFO] │ │ └─ org.junit.jupiter:junit-jupiter-engine:jar:5.7.2 (runtime) [INFO] │ ├─ io.quarkus:quarkus-vertx-http-dev-console-spi:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-vertx-http-dev-console-runtime-spi:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus.arc:arc:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ jakarta.transaction:jakarta.transaction-api:jar:1.3.3 (compile) [INFO] │ │ └─ io.vertx:vertx-web:jar:4.1.0 (compile) [INFO] │ │ └─ io.vertx:vertx-bridge-common:jar:4.1.0 (compile) [INFO] │ ├─ io.quarkus:quarkus-arc:jar:2.0.3.Final (compile) [INFO] │ │ └─ org.eclipse.microprofile.context-propagation:microprofile-context-propagation-api:jar:1.2 (compile) [INFO] │ └─ io.quarkus.arc:arc-processor:jar:2.0.3.Final (compile) [INFO] │ ├─ jakarta.enterprise:jakarta.enterprise.cdi-api:jar:2.0.2 (compile) [INFO] │ │ ├─ jakarta.el:jakarta.el-api:jar:3.0.3 (compile) [INFO] │ │ └─ jakarta.interceptor:jakarta.interceptor-api:jar:1.2.5 (compile) [INFO] │ ├─ org.jboss.logging:jboss-logging:jar:3.4.2.Final (compile) [INFO] │ └─ jakarta.annotation:jakarta.annotation-api:jar:1.3.5 (compile) [INFO] ├─ io.quarkus:quarkus-smallrye-health-deployment:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-vertx-http-deployment:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-vertx-core-deployment:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ io.quarkus:quarkus-vertx-core:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ io.netty:netty-codec-haproxy:jar:4.1.65.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-vertx-http:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ io.quarkus:quarkus-security-runtime-spi:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ io.quarkus:quarkus-mutiny:jar:2.0.3.Final (compile) [INFO] │ │ │ ├─ io.quarkus:quarkus-smallrye-context-propagation:jar:2.0.3.Final (compile) [INFO] │ │ │ │ └─ io.smallrye:smallrye-context-propagation:jar:1.2.0 (compile) [INFO] │ │ │ │ ├─ io.smallrye:smallrye-context-propagation-api:jar:1.2.0 (compile) [INFO] │ │ │ │ └─ io.smallrye:smallrye-context-propagation-storage:jar:1.2.0 (compile) [INFO] │ │ │ └─ io.smallrye.reactive:mutiny-smallrye-context-propagation:jar:0.17.0 (compile) [INFO] │ │ ├─ io.quarkus:quarkus-mutiny-deployment:jar:2.0.3.Final (compile) [INFO] │ │ │ └─ io.quarkus:quarkus-smallrye-context-propagation-deployment:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-kubernetes-spi:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus.qute:qute-core:jar:2.0.3.Final (compile) [INFO] │ │ ├─ org.yaml:snakeyaml:jar:1.28 (compile) [INFO] │ │ └─ com.fasterxml.jackson.core:jackson-databind:jar:2.12.4 (compile) [INFO] │ │ ├─ com.fasterxml.jackson.core:jackson-annotations:jar:2.12.4 (compile) [INFO] │ │ └─ com.fasterxml.jackson.core:jackson-core:jar:2.12.4 (compile) [INFO] │ ├─ io.quarkus:quarkus-jsonp-deployment:jar:2.0.3.Final (compile) [INFO] │ │ └─ io.quarkus:quarkus-jsonp:jar:2.0.3.Final (compile) [INFO] │ │ └─ org.glassfish:jakarta.json:jar:1.1.6 (compile) [INFO] │ ├─ io.quarkus:quarkus-smallrye-health-spi:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-smallrye-openapi-spi:jar:2.0.3.Final (compile) [INFO] │ │ └─ io.smallrye:smallrye-open-api-core:jar:2.1.6 (compile) [INFO] │ │ ├─ org.eclipse.microprofile.openapi:microprofile-openapi-api:jar:2.0.1-RC1 (compile) [INFO] │ │ ├─ org.eclipse.microprofile.config:microprofile-config-api:jar:2.0 (compile) [INFO] │ │ └─ com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.12.4 (compile) [INFO] │ ├─ io.quarkus:quarkus-smallrye-health:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.smallrye:smallrye-health:jar:3.0.2 (compile) [INFO] │ │ │ ├─ org.eclipse.microprofile.health:microprofile-health-api:jar:3.0 (compile) [INFO] │ │ │ └─ io.smallrye:smallrye-health-api:jar:3.0.2 (compile) [INFO] │ │ └─ io.smallrye:smallrye-health-provided-checks:jar:3.0.2 (compile) [INFO] │ └─ io.smallrye:smallrye-health-ui:jar:3.0.2 (compile) [INFO] ├─ com.mygroup:platform-api:jar:5.0.65-SNAPSHOT (compile) [INFO] │ ├─ io.quarkus:quarkus-config-yaml-deployment:jar:2.0.3.Final (compile) [INFO] │ │ └─ io.quarkus:quarkus-config-yaml:jar:2.0.3.Final (compile) [INFO] │ │ └─ io.smallrye.config:smallrye-config-source-yaml:jar:2.4.2 (compile) [INFO] │ │ ├─ io.smallrye.config:smallrye-config-common:jar:2.4.2 (compile) [INFO] │ │ └─ io.smallrye.common:smallrye-common-constraint:jar:1.6.0 (compile) [INFO] │ └─ io.quarkus:quarkus-smallrye-openapi-deployment:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-resteasy-server-common-spi:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-resteasy-common-spi:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-smallrye-openapi-common-deployment:jar:2.0.3.Final (compile) [INFO] │ ├─ io.quarkus:quarkus-swagger-ui-deployment:jar:2.0.3.Final (compile) [INFO] │ │ ├─ io.quarkus:quarkus-swagger-ui:jar:2.0.3.Final (compile) [INFO] │ │ └─ io.smallrye:smallrye-open-api-ui:jar:2.1.6 (compile) [INFO] │ ├─ io.quarkus:quarkus-smallrye-openapi:jar:2.0.3.Final (compile) [INFO] │ ├─ io.smallrye:smallrye-open-api-jaxrs:jar:2.1.6 (compile) [INFO] │ ├─ io.smallrye:smallrye-open-api-spring:jar:2.1.6 (compile) [INFO] │ └─ io.smallrye:smallrye-open-api-vertx:jar:2.1.6 (compile) [INFO] └─ com.google.guava:guava:jar:30.1.1-jre (compile) [INFO] ├─ com.google.guava:failureaccess:jar:1.0.1 (compile) [INFO] ├─ com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava (compile) [INFO] ├─ com.google.code.findbugs:jsr305:jar:3.0.2 (compile) [INFO] ├─ org.checkerframework:checker-qual:jar:2.5.2 (compile) [INFO] ├─ com.google.errorprone:error_prone_annotations:jar:2.2.0 (compile) [INFO] └─ com.google.j2objc:j2objc-annotations:jar:1.3 (compile)

Additional information

No response

quarkus-bot[bot] commented 3 years ago

/cc @FroMage, @evanchooly, @loicmathieu

knutwannheden commented 3 years ago

I reported a similar issue against another library (pact-foundation/pact-jvm#1380) due to a mismatch with Quarkus runtime version. Now that other library upgraded to the most recent ANTLR version 4.9.2.

Wouldn't it in this case also make sense to request the other library to upgrade?

loicmathieu commented 3 years ago

Just checked it on Quarkus 2.1 and the warning disapear, there seems to have been a dependency mismatch somewhere that somone fixed. @kjq can you test with Quarkus 2.1 ?

@knutwannheden we cannot stop this warning for happening if different versions of ANTLR are used in different library. We can enfore the use of the same one inside Quarkus managed dependencies but nothing more. As ANTLR is used to generate classes at build time it's impossible to avoid this warning if two libraries (in your case, Quarkus and pact-jcm) uses different version.

kjq commented 3 years ago

Hello Loic.

Thank you for the response. This is running using Quakurs (BOM) 2.1 When I dump out the dependency tree I do not see any references to that version of ANTLR either.

KJQ

On Mon, Aug 2, 2021 at 9:59 AM Loïc Mathieu @.***> wrote:

Just checked it on Quarkus 2.1 and the warning disapear, there seems to have been a dependency mismatch somewhere that somone fixed. @kjq https://github.com/kjq can you test with Quarkus 2.1 ?

@knutwannheden https://github.com/knutwannheden we cannot stop this warning for happening if different versions of ANTLR are used in different library. We can enfore the use of the same one inside Quarkus managed dependencies but nothing more. As ANTLR is used to generate classes at build time it's impossible to avoid this warning if two libraries (in your case, Quarkus and pact-jcm) uses different version.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/quarkusio/quarkus/issues/19140#issuecomment-891050226, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAECKMRONBXLRDDAXSGJHPLT22QC5ANCNFSM5BJAXK7Q .

loicmathieu commented 3 years ago

@kjq so using Quarkus 2.1 you confirm the WARNING disapear ?

kjq commented 3 years ago

Loic,

Just double-checked and using Quarkus 2.1.0.Final - I must be losing my mind, the warning does "not" appear anymore (I'll test later using the Mandrel image just to make sure)...

Thanks for pointing this out. We must not have done any builds since the upgrade...

On Mon, Aug 2, 2021 at 10:19 AM Loïc Mathieu @.***> wrote:

@kjq https://github.com/kjq so using Quarkus 2.1 you confirm the WARNING disapear ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/quarkusio/quarkus/issues/19140#issuecomment-891067653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAECKMSPWLLKUBXAQMHAM5DT22SQ5ANCNFSM5BJAXK7Q .

loicmathieu commented 3 years ago

@kjq you should not have any differencies with Mandrel and thanks for confirming that the issue is fixed on Quarkus 2.1.

I'm closing it now, feel free to re-open it if the warning re-appear later with new feedbacks.

knutwannheden commented 3 years ago

I am aware of the issue. I just wanted to point out that I think it would make sense to upgrade to the latest version of ANTLR if anything and make a corresponding request for other libraries.

tarilabs commented 2 years ago

Hi everyone, we are experiencing again, an analogous issue when using Quarkus+Kogito extension, as reported here: https://github.com/kiegroup/kogito-runtimes/issues/1734

The problem seems to be related to:

https://github.com/quarkusio/quarkus/blob/c41872f2d3a1ecf97245c7f0eaaa4a18c658b07f/bom/application/pom.xml#L3252-L3261

this dependency declared here "imposes" the Antlr4 runtime for any extension for the whole Quarkus app, while Kogito leverages Drools which is using Antlr4 v4.8

In other words, regardless Panache is not-used, when I have a quarkus app with kogito extension, those lines seems to impose the antlr4 runtime to kogito, therefore overriding the expected antlr4 version if compared to the one which Drools has been generated with (Drools DMN Engine 4.8 -> 4.9.2 overridden by quarkus)

@loicmathieu @geoand my question: is there a way that the antlr4 is declared only for the Panache, so that a plain Quarkus+Kogito extension won't be suffering from the version ovverride (from quarkus), please?

/cc @danielezonca

geoand commented 2 years ago

I personally don't know why Quarkus uses ANTLR, so I can't help much here. @gsmet do you remember?

loicmathieu commented 2 years ago

ANTLR is used by Quarkus for PanacheQL support for MongoDB with Panache. But here, the issue is a dependency convergence issue between one of the Quarkus core extension and one of the Quarkus Platform external one. I think we usually manage those by upgrading the lower one if possible.

geoand commented 2 years ago

Right, what I meant is that I am not the one that can decide whether or not we can upgrade ANTLR since I don't know how we use it.

tarilabs commented 2 years ago

ANTLR is used by Quarkus for PanacheQL support for MongoDB with Panache.

open question: can't the MongoDB-Panache only define the dependency to ANTLR then ?

That way you don't impose "quarkus -wide" a dependency which is only used in a subcomponent of a single extension?

geoand commented 2 years ago

That way you don't impose "quarkus -wide" a dependency which is only used in a subcomponent of a single extension?

There is, @aloubyansky can tell you more