Closed rgmz closed 2 years ago
Are you sure you are using the same version of the BOM and the Quarkus Maven plugin?
If so, please prepare a reproducer.
Uh, not sure how I broke the issue submission. Luckily, I always back it up!
Describe the Bug
When running mvn compile
with a freshly-generated 2.7.0 project, the execution fails due to a missing dependency.
Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:2.7.0.Final:generate-code (default) on project sample: Execution default of goal io.quarkus.platform:quarkus-maven-plugin:2.7.0.Final:generate-code failed: A required class was missing while executing io.quarkus.platform:quarkus-maven-plugin:2.7.0.Final:generate-code: org/eclipse/aether/util/ConfigUtils
Expected Behaviour
The project compiles successfully.
Actual Behaviour
mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.sample:sample >-------------------
[INFO] Building sample 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.0.Final:generate-code (default) @ sample ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.199 s
[INFO] Finished at: 2022-02-05T14:12:34-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:2.7.0.Final:generate-code (default) on project sample: Execution default of goal io.quarkus.platform:quarkus-maven-plugin:2.7.0.Final:generate-code failed: A required class was missing while executing io.quarkus.platform:quarkus-maven-plugin:2.7.0.Final:generate-code: org/eclipse/aether/util/ConfigUtils
[ERROR] -----------------------------------------------------
[ERROR] realm = extension>io.quarkus.platform:quarkus-maven-plugin:2.7.0.Final
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/USER/.m2/repository/io/quarkus/platform/quarkus-maven-plugin/2.7.0.Final/quarkus-maven-plugin-2.7.0.Final.jar
[ERROR] urls[1] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-bootstrap-core/2.7.0.Final/quarkus-bootstrap-core-2.7.0.Final.jar
[ERROR] urls[2] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-bootstrap-app-model/2.7.0.Final/quarkus-bootstrap-app-model-2.7.0.Final.jar
[ERROR] urls[3] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-fs-util/0.0.8/quarkus-fs-util-0.0.8.jar
[ERROR] urls[4] = file:/Users/USER/.m2/repository/org/jboss/logging/jboss-logging/3.4.3.Final/jboss-logging-3.4.3.Final.jar
[ERROR] urls[5] = file:/Users/USER/.m2/repository/org/jboss/logging/commons-logging-jboss-logging/1.0.0.Final/commons-logging-jboss-logging-1.0.0.Final.jar
[ERROR] urls[6] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-bootstrap-maven-resolver/2.7.0.Final/quarkus-bootstrap-maven-resolver-2.7.0.Final.jar
[ERROR] urls[7] = file:/Users/USER/.m2/repository/org/jboss/logmanager/jboss-logmanager-embedded/1.0.9/jboss-logmanager-embedded-1.0.9.jar
[ERROR] urls[8] = file:/Users/USER/.m2/repository/org/apache/maven/maven-embedder/3.8.4/maven-embedder-3.8.4.jar
[ERROR] urls[9] = file:/Users/USER/.m2/repository/org/codehaus/plexus/plexus-cipher/2.0/plexus-cipher-2.0.jar
[ERROR] urls[10] = file:/Users/USER/.m2/repository/commons-cli/commons-cli/1.4/commons-cli-1.4.jar
[ERROR] urls[11] = file:/Users/USER/.m2/repository/org/apache/maven/resolver/maven-resolver-connector-basic/1.6.3/maven-resolver-connector-basic-1.6.3.jar
[ERROR] urls[12] = file:/Users/USER/.m2/repository/org/apache/maven/resolver/maven-resolver-transport-wagon/1.6.3/maven-resolver-transport-wagon-1.6.3.jar
[ERROR] urls[13] = file:/Users/USER/.m2/repository/org/apache/maven/wagon/wagon-http/3.4.3/wagon-http-3.4.3.jar
[ERROR] urls[14] = file:/Users/USER/.m2/repository/org/apache/maven/wagon/wagon-http-shared/3.4.3/wagon-http-shared-3.4.3.jar
[ERROR] urls[15] = file:/Users/USER/.m2/repository/org/jsoup/jsoup/1.14.2/jsoup-1.14.2.jar
[ERROR] urls[16] = file:/Users/USER/.m2/repository/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
[ERROR] urls[17] = file:/Users/USER/.m2/repository/commons-codec/commons-codec/1.15/commons-codec-1.15.jar
[ERROR] urls[18] = file:/Users/USER/.m2/repository/org/apache/httpcomponents/httpcore/4.4.15/httpcore-4.4.15.jar
[ERROR] urls[19] = file:/Users/USER/.m2/repository/org/apache/maven/wagon/wagon-file/3.4.3/wagon-file-3.4.3.jar
[ERROR] urls[20] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-bootstrap-gradle-resolver/2.7.0.Final/quarkus-bootstrap-gradle-resolver-2.7.0.Final.jar
[ERROR] urls[21] = file:/Users/USER/.m2/repository/io/smallrye/common/smallrye-common-io/1.8.0/smallrye-common-io-1.8.0.jar
[ERROR] urls[22] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-core-deployment/2.7.0.Final/quarkus-core-deployment-2.7.0.Final.jar
[ERROR] urls[23] = file:/Users/USER/.m2/repository/org/aesh/readline/2.2/readline-2.2.jar
[ERROR] urls[24] = file:/Users/USER/.m2/repository/org/aesh/aesh/2.6/aesh-2.6.jar
[ERROR] urls[25] = file:/Users/USER/.m2/repository/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar
[ERROR] urls[26] = file:/Users/USER/.m2/repository/org/wildfly/common/wildfly-common/1.5.4.Final-format-001/wildfly-common-1.5.4.Final-format-001.jar
[ERROR] urls[27] = file:/Users/USER/.m2/repository/io/quarkus/gizmo/gizmo/1.0.10.Final/gizmo-1.0.10.Final.jar
[ERROR] urls[28] = file:/Users/USER/.m2/repository/org/ow2/asm/asm-util/9.2/asm-util-9.2.jar
[ERROR] urls[29] = file:/Users/USER/.m2/repository/org/jboss/jandex/2.4.2.Final/jandex-2.4.2.Final.jar
[ERROR] urls[30] = file:/Users/USER/.m2/repository/org/ow2/asm/asm/9.2/asm-9.2.jar
[ERROR] urls[31] = file:/Users/USER/.m2/repository/org/ow2/asm/asm-commons/9.2/asm-commons-9.2.jar
[ERROR] urls[32] = file:/Users/USER/.m2/repository/org/ow2/asm/asm-tree/9.2/asm-tree-9.2.jar
[ERROR] urls[33] = file:/Users/USER/.m2/repository/org/ow2/asm/asm-analysis/9.2/asm-analysis-9.2.jar
[ERROR] urls[34] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-development-mode-spi/2.7.0.Final/quarkus-development-mode-spi-2.7.0.Final.jar
[ERROR] urls[35] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-class-change-agent/2.7.0.Final/quarkus-class-change-agent-2.7.0.Final.jar
[ERROR] urls[36] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-devtools-utilities/2.7.0.Final/quarkus-devtools-utilities-2.7.0.Final.jar
[ERROR] urls[37] = file:/Users/USER/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.5/org.eclipse.sisu.inject-0.3.5.jar
[ERROR] urls[38] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-core/2.7.0.Final/quarkus-core-2.7.0.Final.jar
[ERROR] urls[39] = file:/Users/USER/.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar
[ERROR] urls[40] = file:/Users/USER/.m2/repository/io/smallrye/config/smallrye-config/2.8.2/smallrye-config-2.8.2.jar
[ERROR] urls[41] = file:/Users/USER/.m2/repository/io/smallrye/config/smallrye-config-core/2.8.2/smallrye-config-core-2.8.2.jar
[ERROR] urls[42] = file:/Users/USER/.m2/repository/org/eclipse/microprofile/config/microprofile-config-api/2.0/microprofile-config-api-2.0.jar
[ERROR] urls[43] = file:/Users/USER/.m2/repository/io/smallrye/common/smallrye-common-annotation/1.8.0/smallrye-common-annotation-1.8.0.jar
[ERROR] urls[44] = file:/Users/USER/.m2/repository/io/smallrye/common/smallrye-common-expression/1.8.0/smallrye-common-expression-1.8.0.jar
[ERROR] urls[45] = file:/Users/USER/.m2/repository/io/smallrye/common/smallrye-common-function/1.8.0/smallrye-common-function-1.8.0.jar
[ERROR] urls[46] = file:/Users/USER/.m2/repository/io/smallrye/common/smallrye-common-constraint/1.8.0/smallrye-common-constraint-1.8.0.jar
[ERROR] urls[47] = file:/Users/USER/.m2/repository/io/smallrye/common/smallrye-common-classloader/1.8.0/smallrye-common-classloader-1.8.0.jar
[ERROR] urls[48] = file:/Users/USER/.m2/repository/io/smallrye/config/smallrye-config-common/2.8.2/smallrye-config-common-2.8.2.jar
[ERROR] urls[49] = file:/Users/USER/.m2/repository/org/jboss/logging/jboss-logging-annotations/2.2.1.Final/jboss-logging-annotations-2.2.1.Final.jar
[ERROR] urls[50] = file:/Users/USER/.m2/repository/org/jboss/threads/jboss-threads/3.4.2.Final/jboss-threads-3.4.2.Final.jar
[ERROR] urls[51] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-bootstrap-runner/2.7.0.Final/quarkus-bootstrap-runner-2.7.0.Final.jar
[ERROR] urls[52] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-builder/2.7.0.Final/quarkus-builder-2.7.0.Final.jar
[ERROR] urls[53] = file:/Users/USER/.m2/repository/org/graalvm/sdk/graal-sdk/21.3.0/graal-sdk-21.3.0.jar
[ERROR] urls[54] = file:/Users/USER/.m2/repository/org/junit/platform/junit-platform-launcher/1.8.2/junit-platform-launcher-1.8.2.jar
[ERROR] urls[55] = file:/Users/USER/.m2/repository/org/junit/platform/junit-platform-engine/1.8.2/junit-platform-engine-1.8.2.jar
[ERROR] urls[56] = file:/Users/USER/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar
[ERROR] urls[57] = file:/Users/USER/.m2/repository/org/junit/platform/junit-platform-commons/1.8.2/junit-platform-commons-1.8.2.jar
[ERROR] urls[58] = file:/Users/USER/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar
[ERROR] urls[59] = file:/Users/USER/.m2/repository/org/junit/jupiter/junit-jupiter/5.8.2/junit-jupiter-5.8.2.jar
[ERROR] urls[60] = file:/Users/USER/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.8.2/junit-jupiter-api-5.8.2.jar
[ERROR] urls[61] = file:/Users/USER/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.8.2/junit-jupiter-params-5.8.2.jar
[ERROR] urls[62] = file:/Users/USER/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.8.2/junit-jupiter-engine-5.8.2.jar
[ERROR] urls[63] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-project-core-extension-codestarts/2.7.0.Final/quarkus-project-core-extension-codestarts-2.7.0.Final.jar
[ERROR] urls[64] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-devtools-common/2.7.0.Final/quarkus-devtools-common-2.7.0.Final.jar
[ERROR] urls[65] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-devtools-registry-client/2.7.0.Final/quarkus-devtools-registry-client-2.7.0.Final.jar
[ERROR] urls[66] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-devtools-artifact-api/2.7.0.Final/quarkus-devtools-artifact-api-2.7.0.Final.jar
[ERROR] urls[67] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-devtools-message-writer/2.7.0.Final/quarkus-devtools-message-writer-2.7.0.Final.jar
[ERROR] urls[68] = file:/Users/USER/.m2/repository/io/smallrye/common/smallrye-common-os/1.8.0/smallrye-common-os-1.8.0.jar
[ERROR] urls[69] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-devtools-base-codestarts/2.7.0.Final/quarkus-devtools-base-codestarts-2.7.0.Final.jar
[ERROR] urls[70] = file:/Users/USER/.m2/repository/io/quarkus/quarkus-devtools-codestarts/2.7.0.Final/quarkus-devtools-codestarts-2.7.0.Final.jar
[ERROR] urls[71] = file:/Users/USER/.m2/repository/io/quarkus/qute/qute-core/2.7.0.Final/qute-core-2.7.0.Final.jar
[ERROR] urls[72] = file:/Users/USER/.m2/repository/io/smallrye/reactive/mutiny/1.3.1/mutiny-1.3.1.jar
[ERROR] urls[73] = file:/Users/USER/.m2/repository/org/reactivestreams/reactive-streams/1.0.3/reactive-streams-1.0.3.jar
[ERROR] urls[74] = file:/Users/USER/.m2/repository/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar
[ERROR] urls[75] = file:/Users/USER/.m2/repository/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar
[ERROR] urls[76] = file:/Users/USER/.m2/repository/io/fabric8/maven-model-helper/19/maven-model-helper-19.jar
[ERROR] urls[77] = file:/Users/USER/.m2/repository/org/jdom/jdom/1.1.3/jdom-1.1.3.jar
[ERROR] urls[78] = file:/Users/USER/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.13.1/jackson-dataformat-yaml-2.13.1.jar
[ERROR] urls[79] = file:/Users/USER/.m2/repository/org/yaml/snakeyaml/1.30/snakeyaml-1.30.jar
[ERROR] urls[80] = file:/Users/USER/.m2/repository/org/codehaus/plexus/plexus-utils/3.3.0/plexus-utils-3.3.0.jar
[ERROR] urls[81] = file:/Users/USER/.m2/repository/jakarta/inject/jakarta.inject-api/1.0/jakarta.inject-api-1.0.jar
[ERROR] urls[82] = file:/Users/USER/.m2/repository/jakarta/enterprise/jakarta.enterprise.cdi-api/2.0.2/jakarta.enterprise.cdi-api-2.0.2.jar
[ERROR] urls[83] = file:/Users/USER/.m2/repository/jakarta/el/jakarta.el-api/3.0.3/jakarta.el-api-3.0.3.jar
[ERROR] urls[84] = file:/Users/USER/.m2/repository/jakarta/interceptor/jakarta.interceptor-api/1.2.5/jakarta.interceptor-api-1.2.5.jar
[ERROR] urls[85] = file:/Users/USER/.m2/repository/org/codehaus/plexus/plexus-sec-dispatcher/2.0/plexus-sec-dispatcher-2.0.jar
[ERROR] urls[86] = file:/Users/USER/.m2/repository/org/apache/maven/maven-builder-support/3.8.4/maven-builder-support-3.8.4.jar
[ERROR] urls[87] = file:/Users/USER/.m2/repository/org/apache/maven/resolver/maven-resolver-util/1.6.3/maven-resolver-util-1.6.3.jar
[ERROR] urls[88] = file:/Users/USER/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.3.4/maven-shared-utils-3.3.4.jar
[ERROR] urls[89] = file:/Users/USER/.m2/repository/com/google/inject/guice/4.2.2/guice-4.2.2-no_aop.jar
[ERROR] urls[90] = file:/Users/USER/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[91] = file:/Users/USER/.m2/repository/com/google/guava/guava/30.1.1-jre/guava-30.1.1-jre.jar
[ERROR] urls[92] = file:/Users/USER/.m2/repository/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
[ERROR] urls[93] = file:/Users/USER/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
[ERROR] urls[94] = file:/Users/USER/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
[ERROR] urls[95] = file:/Users/USER/.m2/repository/com/google/errorprone/error_prone_annotations/2.10.0/error_prone_annotations-2.10.0.jar
[ERROR] urls[96] = file:/Users/USER/.m2/repository/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar
[ERROR] urls[97] = file:/Users/USER/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.26/plexus-interpolation-1.26.jar
[ERROR] urls[98] = file:/Users/USER/.m2/repository/org/codehaus/plexus/plexus-component-annotations/2.1.0/plexus-component-annotations-2.1.0.jar
[ERROR] urls[99] = file:/Users/USER/.m2/repository/org/freemarker/freemarker/2.3.31/freemarker-2.3.31.jar
[ERROR] urls[100] = file:/Users/USER/.m2/repository/org/glassfish/jakarta.json/1.1.6/jakarta.json-1.1.6.jar
[ERROR] urls[101] = file:/Users/USER/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.13.1/jackson-databind-2.13.1.jar
[ERROR] urls[102] = file:/Users/USER/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.13.1/jackson-annotations-2.13.1.jar
[ERROR] urls[103] = file:/Users/USER/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.13.1/jackson-core-2.13.1.jar
[ERROR] urls[104] = file:/Users/USER/.m2/repository/org/twdata/maven/mojo-executor/2.3.1/mojo-executor-2.3.1.jar
[ERROR] urls[105] = file:/Users/USER/.m2/repository/org/jboss/slf4j/slf4j-jboss-logmanager/1.1.0.Final/slf4j-jboss-logmanager-1.1.0.Final.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : org.eclipse.aether.util.ConfigUtils
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
Output of uname -a
Darwin HOST 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6-3/RELEASE_X86_64 X86_64
Output of `java -version
openjdk version "11.0.12" 2021-07-20 LTS
OpenJDK Runtime Environment Corettto-11.0.12.7.2 (build 11.0.12+7-LTS)
Build tool
Maven 3.8.4
Are you sure you are using the same version of the BOM and the Quarkus Maven plugin?
If so, please prepare a reproducer.
@gsmet This was on a freshly generated 2.7.0.Final project. I'm attempting to reproduce it from my Fedora machine to see if it could be an issue with macOS, or my Mac specifically.
More details in the above comment, as my initial submission lost all information from the template for some reason.
Hmm, not sure what the underlying the issue was, but blowing away my ~/.m2/repositories
directory fixed it.
/cc @quarkusio/devtools