Skip to content

Conversation

@nandakumar131
Copy link
Contributor

@nandakumar131 nandakumar131 commented Jan 4, 2025

What changes were proposed in this pull request?

Enable sortpom in hdds-erasurecode, hdds-framework, hdds-hadoop-dependency-client

Sortpom plugin was added as part of #7555.
This PR enables the plugin for hadoop-hdds sub-modules. (part 3)
Sorting all the sub-modules under hadoop-hdds creates a big change, which will be hard to review. So, breaking this into multiple PRs.
This PR sorts pom of the following sub-modules.

  • erasurecode
  • framework
  • hadoop-dependency-client

What is the link to the Apache JIRA

HDDS-12020

How was this patch tested?

Manually tested by adding out of order property.

hadoop-hdds/erasurecode/pom.xml

[INFO] --- sortpom:3.0.1:verify (default) @ hdds-erasurecode ---
[INFO] Verifying file /Users/nvadivelu/Codebase/Github/ozone/hadoop-hdds/erasurecode/pom.xml
[ERROR] The line 29 is not considered sorted, should be '    <property.one>one</property.one>'
[ERROR] The file /Users/nvadivelu/Codebase/Github/ozone/hadoop-hdds/erasurecode/pom.xml is not sorted

hadoop-hdds/framework/pom.xml

[INFO] --- sortpom:3.0.1:verify (default) @ hdds-server-framework ---
[INFO] Verifying file /Users/nvadivelu/Codebase/Github/ozone/hadoop-hdds/framework/pom.xml
[ERROR] The line 29 is not considered sorted, should be '    <property.one>one</property.one>'
[ERROR] The file /Users/nvadivelu/Codebase/Github/ozone/hadoop-hdds/framework/pom.xml is not sorted

hadoop-hdds/hadoop-dependency-client/pom.xml

[INFO] --- sortpom:3.0.1:verify (default) @ hdds-hadoop-dependency-client ---
[INFO] Verifying file /Users/nvadivelu/Codebase/Github/ozone/hadoop-hdds/hadoop-dependency-client/pom.xml
[ERROR] The line 31 is not considered sorted, should be '    <property.one>one</property.one>'
[ERROR] The file /Users/nvadivelu/Codebase/Github/ozone/hadoop-hdds/hadoop-dependency-client/pom.xml is not sorted

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nandakumar131 for the patch. Mostly LGTM, two minor comments about comments. :)

Comment on lines +42 to 47
<groupId>org.apache.ozone</groupId>
<artifactId>hdds-config</artifactId>
<scope>test</scope>
</dependency>

<!-- Test dependencies -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can either remove <!-- Test dependencies -->, or move it before the first one with test scope.

Copy link
Contributor Author

@nandakumar131 nandakumar131 Jan 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, I will fix (move it where the test dependencies start) this in the next PR.

<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</exclusion>
<!-- commons-cli is required by OzoneFsShell -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this comment to between commons-beanutils and commons-codec (where commons-cli exclusion would fit).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do!

@adoroszlai adoroszlai merged commit f9bd055 into apache:master Jan 5, 2025
41 checks passed
@nandakumar131
Copy link
Contributor Author

Thanks for the review and merge @adoroszlai.

@nandakumar131 nandakumar131 deleted the HDDS-12020 branch January 5, 2025 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants