Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-11951. Enable sortpom in hadoop-hdds sub-modules : annotations, client, common & config. #7631

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

nandakumar131
Copy link
Contributor

What changes were proposed in this pull request?

Enable sortpom in hadoop-hdds sub-modules : annotations, client, common & config.

Sortpom plugin was added as part of #7555.
This PR enables the plugin for hadoop-hdds sub-modules. (part 1)
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 also sorts the pom of hadoop-hdds and the following sub-modules.

annotations
client
common
config

What is the link to the Apache JIRA

HDDS-11951

How was this patch tested?

Manually tested by adding out of order property.

hadoop-hdds/pom.xml

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

hadoop-hdds/annotations/pom.xml

[INFO] --- sortpom:3.0.1:verify (default) @ hdds-annotation-processing ---
[INFO] Verifying file /Users/nvadivelu/Codebase/Github/ozone/hadoop-hdds/annotations/pom.xml
[ERROR] The line 31 is not considered sorted, should be '    <maven.test.skip>true</maven.test.skip>'
[ERROR] The file /Users/nvadivelu/Codebase/Github/ozone/hadoop-hdds/annotations/pom.xml is not sorted

hadoop-hdds/client/pom.xml

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

hadoop-hdds/common/pom.xml

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

hadoop-hdds/config/pom.xml

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

Comment on lines +31 to +32
<maven.test.skip>true</maven.test.skip>
<!-- no tests in this module so far -->
Copy link
Contributor

Choose a reason for hiding this comment

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

In the next sub-task under HDDS-11905 please include this trivial change:

Suggested change
<maven.test.skip>true</maven.test.skip>
<!-- no tests in this module so far -->
<!-- no tests in this module so far -->
<maven.test.skip>true</maven.test.skip>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, will fix this in the next PR.

@nandakumar131 nandakumar131 merged commit 9b5cedd into apache:master Jan 2, 2025
42 checks passed
@nandakumar131
Copy link
Contributor Author

Thanks @adoroszlai for the review.

@nandakumar131 nandakumar131 deleted the HDDS-11951 branch January 2, 2025 17:11
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