Hi Jean,

you could import the metrics-bom in the dependencyManagement section of your 
POM.

https://search.maven.org/artifact/io.dropwizard.metrics/metrics-bom/4.1.17/pom 
<https://search.maven.org/artifact/io.dropwizard.metrics/metrics-bom/4.1.17/pom>
https://howtodoinjava.com/maven/maven-bom-bill-of-materials-dependency/ 
<https://howtodoinjava.com/maven/maven-bom-bill-of-materials-dependency/> 

Cheers,
Jochen

> Am 13.01.2021 um 10:52 schrieb Jean Michel <[email protected]>:
> 
> What's the best way for overriding the metrics version in my pom file? Is it 
> sufficient to exclude 'metrics-core' from my 'dropwizard-core' dependency, 
> and then add it back as a separate dependency with the desired version 
> number? Do I also need to exclude all other metrics-related artifacts (e.g., 
> 'metrics-jvm') one by one? Or is there an easier way altogether here perhaps? 
> As you can tell, I'm not that well versed in maven, which is quite a beast to 
> get to grips with.
> 
> -JM
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "dropwizard-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dropwizard-user/5849c96c-d452-4489-b3a2-b760e55c8faan%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/dropwizard-user/5849c96c-d452-4489-b3a2-b760e55c8faan%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dropwizard-user/FDE4283A-CB97-4474-BBDB-84FDB82DFC97%40schalanda.name.

Reply via email to