Combination of quarkus-infinispan-client and quarkus-micrometer ends up with build error, missing microprofile-metrics-api
See original GitHub issueDescribe the bug
Combination of quarkus-infinispan-client and quarkus-micrometer ends up with build error Could not resolve artifact org.eclipse.microprofile.metrics:microprofile-metrics-api::jar among the runtime dependencies of the application
If quarkus-infinispan-client or quarkus-micrometer extensions are used individually the application can be used in dev mode and compiled.
But if they are combined the app ends up with Build step error.
io.quarkus.deployment.index.ApplicationArchiveBuildStep#build threw an exception:
java.lang.RuntimeException: Could not resolve artifact org.eclipse.microprofile.metrics:
microprofile-metrics-api::jar among the runtime dependencies of the application
Expected behavior
Build / dev mode works
Actual behavior
Build / dev mode fails
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.deployment.index.ApplicationArchiveBuildStep#build threw an exception:
java.lang.RuntimeException: Could not resolve artifact org.eclipse.microprofile.metrics:microprofile-metrics-api::jar
among the runtime dependencies of the application
How to Reproduce?
mvn io.quarkus.platform:quarkus-maven-plugin:999-SNAPSHOT:create -DprojectGroupId=my-groupId -DprojectArtifactId=my-app -DprojectVersion=1.0.0-SNAPSHOT -DpackageName=org.my.group -DplatformGroupId=io.quarkus -DplatformArtifactId=quarkus-bom -DplatformVersion=999-SNAPSHOT -DquarkusRegistryClient=false -Dextensions=quarkus-infinispan-client,quarkus-micrometer
mvn -f my-app quarkus:dev
mvn -f my-app clean package
Output of uname -a
or ver
No response
Output of java -version
Java 17
GraalVM version (if different from Java)
No response
Quarkus version or git rev
fa595c7359
Build tool (ie. output of mvnw --version
or gradlew --version
)
No response
Additional information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (7 by maintainers)
I explained things in detail here: https://github.com/quarkusio/quarkus/pull/21267/commits/a3ea8822aa04742b41c5acf8eb0233ff912a05f5
Suspense… which other bug?