This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 360d13907a HDDS-13017. Fix warnings due to non-test scoped test
dependencies (#8479)
360d13907a is described below
commit 360d13907a68bd5e1333df5d0701426373c1a3f0
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Sat May 24 13:56:07 2025 +0200
HDDS-13017. Fix warnings due to non-test scoped test dependencies (#8479)
---
hadoop-hdds/common/pom.xml | 9 +++++----
hadoop-hdds/framework/pom.xml | 29 ++++++++++++++-------------
hadoop-hdds/rocks-native/pom.xml | 1 +
hadoop-hdds/rocksdb-checkpoint-differ/pom.xml | 9 +++++----
hadoop-hdds/server-scm/pom.xml | 3 +++
hadoop-ozone/ozone-manager/pom.xml | 18 +++++++++--------
hadoop-ozone/recon/pom.xml | 1 +
hadoop-ozone/s3gateway/pom.xml | 3 +++
pom.xml | 15 ++++++++++++++
9 files changed, 58 insertions(+), 30 deletions(-)
diff --git a/hadoop-hdds/common/pom.xml b/hadoop-hdds/common/pom.xml
index 6218076fb8..945af0a165 100644
--- a/hadoop-hdds/common/pom.xml
+++ b/hadoop-hdds/common/pom.xml
@@ -178,10 +178,6 @@
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
</dependency>
- <dependency>
- <groupId>org.bouncycastle</groupId>
- <artifactId>bcutil-jdk18on</artifactId>
- </dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
@@ -221,6 +217,11 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcutil-jdk18on</artifactId>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
diff --git a/hadoop-hdds/framework/pom.xml b/hadoop-hdds/framework/pom.xml
index 921a1d1a6a..caed466162 100644
--- a/hadoop-hdds/framework/pom.xml
+++ b/hadoop-hdds/framework/pom.xml
@@ -194,20 +194,6 @@
</exclusion>
</exclusions>
</dependency>
- <dependency>
- <groupId>org.apache.ratis</groupId>
- <artifactId>ratis-server</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.bouncycastle</groupId>
- <artifactId>bcprov-jdk18on</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-reload4j</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
<dependency>
<groupId>org.apache.ratis</groupId>
<artifactId>ratis-server-api</artifactId>
@@ -325,6 +311,21 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.ratis</groupId>
+ <artifactId>ratis-server</artifactId>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcprov-jdk18on</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-reload4j</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-util-ajax</artifactId>
diff --git a/hadoop-hdds/rocks-native/pom.xml b/hadoop-hdds/rocks-native/pom.xml
index 89c0fc62bf..94bc77b79e 100644
--- a/hadoop-hdds/rocks-native/pom.xml
+++ b/hadoop-hdds/rocks-native/pom.xml
@@ -50,6 +50,7 @@
<dependency>
<groupId>org.rocksdb</groupId>
<artifactId>rocksdbjni</artifactId>
+ <!-- <scope>test</scope> but transitive via hdds-managed-rocksdb -->
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
diff --git a/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml
b/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml
index ac0613f618..8093262efb 100644
--- a/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml
+++ b/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml
@@ -47,10 +47,6 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-common</artifactId>
- </dependency>
<dependency>
<groupId>org.apache.ozone</groupId>
<artifactId>hdds-common</artifactId>
@@ -89,6 +85,11 @@
</dependency>
<!-- Test dependencies -->
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-common</artifactId>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.apache.ozone</groupId>
<artifactId>hdds-rocks-native</artifactId>
diff --git a/hadoop-hdds/server-scm/pom.xml b/hadoop-hdds/server-scm/pom.xml
index f67144deeb..7f9db0c04d 100644
--- a/hadoop-hdds/server-scm/pom.xml
+++ b/hadoop-hdds/server-scm/pom.xml
@@ -41,6 +41,7 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
+ <!-- <scope>test</scope> but transitive via hdds-server-framework -->
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
@@ -77,6 +78,7 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
+ <!-- <scope>test</scope> but transitive via hdds-server-framework -->
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
@@ -97,6 +99,7 @@
<dependency>
<groupId>org.apache.ozone</groupId>
<artifactId>hdds-client</artifactId>
+ <!-- <scope>test</scope> but transitive via hdds-container-service -->
</dependency>
<dependency>
<groupId>org.apache.ozone</groupId>
diff --git a/hadoop-ozone/ozone-manager/pom.xml
b/hadoop-ozone/ozone-manager/pom.xml
index d303fc88bd..d2dcdb9d65 100644
--- a/hadoop-ozone/ozone-manager/pom.xml
+++ b/hadoop-ozone/ozone-manager/pom.xml
@@ -96,10 +96,6 @@
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
</dependency>
- <dependency>
- <groupId>jakarta.xml.bind</groupId>
- <artifactId>jakarta.xml.bind-api</artifactId>
- </dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
@@ -165,10 +161,6 @@
<groupId>org.apache.ozone</groupId>
<artifactId>hdds-server-framework</artifactId>
</dependency>
- <dependency>
- <groupId>org.apache.ozone</groupId>
- <artifactId>ozone-client</artifactId>
- </dependency>
<dependency>
<groupId>org.apache.ozone</groupId>
<artifactId>ozone-common</artifactId>
@@ -335,6 +327,11 @@
<artifactId>compile-testing</artifactId>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>jakarta.xml.bind</groupId>
+ <artifactId>jakarta.xml.bind-api</artifactId>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
@@ -370,6 +367,11 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.ozone</groupId>
+ <artifactId>ozone-client</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
<testResources>
diff --git a/hadoop-ozone/recon/pom.xml b/hadoop-ozone/recon/pom.xml
index 3fe3b9b8b8..619fc874df 100644
--- a/hadoop-ozone/recon/pom.xml
+++ b/hadoop-ozone/recon/pom.xml
@@ -282,6 +282,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
+ <!-- <scope>test</scope> but transitive via spring-jdbc -->
</dependency>
<dependency>
<groupId>org.springframework</groupId>
diff --git a/hadoop-ozone/s3gateway/pom.xml b/hadoop-ozone/s3gateway/pom.xml
index 7b6ca80b4e..c4d47c8f6e 100644
--- a/hadoop-ozone/s3gateway/pom.xml
+++ b/hadoop-ozone/s3gateway/pom.xml
@@ -137,6 +137,7 @@
<dependency>
<groupId>org.apache.ozone</groupId>
<artifactId>hdds-client</artifactId>
+ <!-- <scope>test</scope> but transitive via ozone-client -->
</dependency>
<dependency>
<groupId>org.apache.ozone</groupId>
@@ -169,6 +170,7 @@
<dependency>
<groupId>org.apache.ozone</groupId>
<artifactId>ozone-interface-client</artifactId>
+ <!-- <scope>test</scope> but transitive via ozone-client -->
</dependency>
<dependency>
<groupId>org.apache.ratis</groupId>
@@ -197,6 +199,7 @@
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-common</artifactId>
+ <!-- <scope>test</scope> but transitive via jersey-server -->
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
diff --git a/pom.xml b/pom.xml
index c78759f42c..1e408e1d56 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2236,6 +2236,21 @@
<!-- disabled test -->
<excludedClass>org.apache.hadoop.ozone.om.service.TestRangerBGSyncService</excludedClass>
</excludedClasses>
+ <ignoredNonTestScopedDependencies>
+ <!--
+ Ignore false positive "Non-test scoped test only
dependencies": these are test-only in some module, compile scope transitively.
+ See:
+ - https://issues.apache.org/jira/browse/MDEP-791
+ - https://issues.apache.org/jira/browse/MNG-6058
+ -->
+
<ignoredNonTestScopedDependency>com.fasterxml.jackson.core:jackson-databind:jar</ignoredNonTestScopedDependency>
+
<ignoredNonTestScopedDependency>org.apache.commons:commons-compress:jar</ignoredNonTestScopedDependency>
+
<ignoredNonTestScopedDependency>org.apache.ozone:hdds-client:jar</ignoredNonTestScopedDependency>
+
<ignoredNonTestScopedDependency>org.apache.ozone:ozone-interface-client:jar</ignoredNonTestScopedDependency>
+
<ignoredNonTestScopedDependency>org.glassfish.jersey.core:jersey-common:jar</ignoredNonTestScopedDependency>
+
<ignoredNonTestScopedDependency>org.rocksdb:rocksdbjni:jar</ignoredNonTestScopedDependency>
+
<ignoredNonTestScopedDependency>org.springframework:spring-core:jar</ignoredNonTestScopedDependency>
+ </ignoredNonTestScopedDependencies>
</configuration>
</execution>
<execution>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]