From d4c2c75d73ea00fbb3296bc6896e2996f2dba4f0 Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Thu, 29 Aug 2024 11:10:26 +0200 Subject: [PATCH] maven: ensure that we have unique file names to conflicting jars Motivation: codahal metrics and yammer metric have the same jar name metrics-core.jar. Though, this is not an issue but looks like two versions of the same jar. Modification: in assembly step rename one of the jars to make it more clear that those are different artefacts. Result: less confusion by jar names Acked-by: Lea Morschel Target: master Require-book: no Require-notes: no --- .gitlab-ci.yml | 1 - packages/fhs/src/main/assembly/fhs.xml | 12 ++++++++++++ packages/system-test/src/main/assembly/assembly.xml | 12 ++++++++++++ packages/tar/src/main/assembly/tar.xml | 12 ++++++++++++ pom.xml | 3 ++- 5 files changed, 38 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8aa34e7c91c..05485958a67 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -215,7 +215,6 @@ container: Check for duplicate dependencies: stage: build image: almalinux:9-minimal - allow_failure: true needs: - tar dependencies: diff --git a/packages/fhs/src/main/assembly/fhs.xml b/packages/fhs/src/main/assembly/fhs.xml index 327b06ddca8..aa1e5df7f81 100644 --- a/packages/fhs/src/main/assembly/fhs.xml +++ b/packages/fhs/src/main/assembly/fhs.xml @@ -3,10 +3,22 @@ false + + + + io.dropwizard.metrics:metrics-core + + usr/share/dcache/classes + false + dropwizard-metrics-core-${version.dropwizard}.jar + 644 + 755 + org.dcache:dcache-view:jar:* org.dcache:dcache-view-admin:jar:* + io.dropwizard.metrics:metrics-core usr/share/dcache/classes false diff --git a/packages/system-test/src/main/assembly/assembly.xml b/packages/system-test/src/main/assembly/assembly.xml index 7d53d472ec5..1e4dc3547b7 100644 --- a/packages/system-test/src/main/assembly/assembly.xml +++ b/packages/system-test/src/main/assembly/assembly.xml @@ -3,12 +3,24 @@ false + + + + io.dropwizard.metrics:metrics-core + + share/classes + false + dropwizard-metrics-core-${version.dropwizard}.jar + 644 + 755 + *:*:war:* org.dcache:dcache-plugin-hsqldb:zip:* org.dcache:dcache-view:jar:* org.dcache:dcache-view-admin:jar:* + io.dropwizard.metrics:metrics-core share/classes false diff --git a/packages/tar/src/main/assembly/tar.xml b/packages/tar/src/main/assembly/tar.xml index 232c04dcf02..335affd6d53 100644 --- a/packages/tar/src/main/assembly/tar.xml +++ b/packages/tar/src/main/assembly/tar.xml @@ -3,11 +3,23 @@ true + + + + io.dropwizard.metrics:metrics-core + + share/classes + false + dropwizard-metrics-core-${version.dropwizard}.jar + 644 + 755 + *:*:war:* org.dcache:dcache-view:jar:* org.dcache:dcache-view-admin:jar:* + io.dropwizard.metrics:metrics-core share/classes false diff --git a/pom.xml b/pom.xml index 532cac82ef4..eab3c57f124 100644 --- a/pom.xml +++ b/pom.xml @@ -83,6 +83,7 @@ 2.14.0 5.4.0 1.35 + 4.1.29 @@ -206,7 +207,7 @@ io.dropwizard.metrics metrics-core - 4.1.29 + ${version.dropwizard} org.slf4j