[ https://issues.apache.org/jira/browse/HDDS-13058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17985403#comment-17985403 ]
Anastasia Kostryukova edited comment on HDDS-13058 at 6/23/25 12:18 PM: ------------------------------------------------------------------------ During making changes, I've encountered a problem that a warning list (e.g. ozone-filesystem-hadoop2) consists of such dependencies: {noformat} [WARNING] Used undeclared dependencies found: [WARNING] com.google.android:annotations:jar:4.1.1.4:runtime [WARNING] Unused declared dependencies found: [WARNING] org.assertj:assertj-core:jar:3.27.3:test [WARNING] org.junit.jupiter:junit-jupiter-api:jar:5.13.1:test [WARNING] org.junit.jupiter:junit-jupiter-params:jar:5.13.1:test [WARNING] org.mockito:mockito-core:jar:4.11.0:test [WARNING] org.mockito:mockito-inline:jar:4.11.0:test [WARNING] org.mockito:mockito-junit-jupiter:jar:4.11.0:test {noformat} As it's seen, here are test dependencies which are located in the ozone-main pom. The first idea that came up is to remove the dependencies from the pom and add them to child poms. However, I noticed that these dependencies were added by [~adoroszlai] in 13.02.2025 so I'm not sure if they should be removed from ozone-main. May I ask what changes would be appropriate in this case? Also undeclared dependency is found: com.google.android:annotations:jar:4.1.1.4:runtime. This one is not used in project's poms. was (Author: JIRAUSER309411): During making changes, I've encountered a problem that a warning list (e.g. ozone-filesystem-hadoop2) consists of such dependencies: {noformat} [WARNING] Used undeclared dependencies found: [WARNING] com.google.android:annotations:jar:4.1.1.4:runtime [WARNING] Unused declared dependencies found: [WARNING] org.assertj:assertj-core:jar:3.27.3:test [WARNING] org.junit.jupiter:junit-jupiter-api:jar:5.13.1:test [WARNING] org.junit.jupiter:junit-jupiter-params:jar:5.13.1:test [WARNING] org.mockito:mockito-core:jar:4.11.0:test [WARNING] org.mockito:mockito-inline:jar:4.11.0:test [WARNING] org.mockito:mockito-junit-jupiter:jar:4.11.0:test {noformat} As it's seen, here are test dependencies which are located in the ozone-main pom. The first idea that came up is to remove the dependencies from the pom and add them to child poms. However, I noticed that these dependencies were added by [~adoroszlai] in 13.02.2025 so I'm not sure if they should be removed from ozone-main. May I ask what changes would be appropriate in this case? > Fix dependency warnings in ozone-filesystem-hadoop* > --------------------------------------------------- > > Key: HDDS-13058 > URL: https://issues.apache.org/jira/browse/HDDS-13058 > Project: Apache Ozone > Issue Type: Sub-task > Components: build > Reporter: Attila Doroszlai > Assignee: Anastasia Kostryukova > Priority: Major > > {code} > [INFO] --- dependency:3.8.1:analyze-only (analyze) @ ozone-filesystem-shaded > --- > [WARNING] Unused declared dependencies found: > [WARNING] > io.netty:netty-transport-native-epoll:jar:linux-aarch_64:4.1.109.Final:compile > [WARNING] > io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.109.Final:compile > [WARNING] com.google.protobuf:protobuf-java:jar:2.5.0:compile > [WARNING] io.netty:netty-tcnative-boringssl-static:jar:2.0.65.Final:compile > [WARNING] > io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.109.Final:compile > [WARNING] > io.netty:netty-resolver-dns-native-macos:jar:osx-x86_64:4.1.109.Final:compile > [WARNING] > org.apache.ozone:ozone-filesystem-common:jar:2.1.0-SNAPSHOT:compile > [INFO] --- dependency:3.8.1:analyze-only (analyze) @ ozone-filesystem-hadoop2 > --- > [WARNING] Used undeclared dependencies found: > [WARNING] org.apache.ozone:ozone-common:jar:2.1.0-SNAPSHOT:compile > [WARNING] org.apache.ozone:hdds-common:jar:2.1.0-SNAPSHOT:compile > [WARNING] > org.apache.ozone:ozone-interface-client:jar:2.1.0-SNAPSHOT:compile > [WARNING] com.google.protobuf:protobuf-java:jar:2.5.0:compile > [WARNING] org.apache.ozone:hdds-config:jar:2.1.0-SNAPSHOT:compile > [WARNING] > org.apache.ozone:ozone-filesystem-common:jar:2.1.0-SNAPSHOT:compile > [WARNING] Unused declared dependencies found: > [WARNING] > org.apache.ozone:ozone-filesystem-shaded:jar:2.1.0-SNAPSHOT:compile > [INFO] --- dependency:3.8.1:analyze-only (analyze) @ ozone-filesystem-hadoop3 > --- > [WARNING] Used undeclared dependencies found: > [WARNING] org.apache.ozone:ozone-common:jar:2.1.0-SNAPSHOT:compile > [WARNING] com.google.guava:guava:jar:32.1.3-jre:compile > [WARNING] org.slf4j:slf4j-api:jar:2.0.17:provided > [WARNING] org.apache.ozone:hdds-common:jar:2.1.0-SNAPSHOT:compile > [WARNING] org.apache.ozone:hdds-config:jar:2.1.0-SNAPSHOT:compile > [WARNING] > org.apache.ozone:ozone-filesystem-common:jar:2.1.0-SNAPSHOT:compile > [WARNING] Unused declared dependencies found: > [WARNING] > org.apache.ozone:ozone-filesystem-shaded:jar:2.1.0-SNAPSHOT:compile > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org