question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Combination of quarkus-infinispan-client and quarkus-micrometer ends up with build error, missing microprofile-metrics-api

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

0reactions
ebullientcommented, Nov 8, 2021

Suspense… which other bug?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Micrometer Metrics - Quarkus
Micrometer provides an API that allows you to construct your own custom metrics. The most common types of meters supported by monitoring systems...
Read more >
Micrometer is recommended for metrics with Quarkus 1.9
Though Quarkus offers extensions for MicroProfile, including metrics, we're now recommending the use of the Micrometer extension for metrics in ...
Read more >
Smallrye Metrics - Quarkus
The following guide demonstrates how a Quarkus application can use SmallRye Metrics, an implementation of the MicroProfile Metrics specification.
Read more >
Monitoring Quarkus apps using Micrometer and Prometheus ...
Metrics are the measurements of any aspect of an application such as resource usage or behaviors. We can expose these metrics from our...
Read more >
Building Kafka Streams applications with Quarkus and Eclipse ...
You first build up a Topology and then create a KafkaStreams instance. ... Using the MicroProfile Metrics API, these metrics can be exposed ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found