Skip to content

Conversation

@swamirishi
Copy link
Contributor

What changes were proposed in this pull request?

Maven build of shaded hadoop jar fails when trying to extract

ozone-filesystem-shaded jar to classes since the jar has a directory called license containing many license files and a file LICENSE within the same directory, which interferes with one another when unpack module on the artifact runs.

The solution proposes to add a fileMapper which aims to rename the directory META-INF/license/ to META-INF/licenses/

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-10178

How was this patch tested?

Local mac(APFS case insensitve) code build succeeded.

@swamirishi swamirishi requested a review from adoroszlai January 21, 2024 02:28
@adoroszlai
Copy link
Contributor

Thanks @swamirishi for finding the Ozone commit that introduced this problem. Please check #6045 for an alternative fix (reverting plexus-archiver to the latest working version). I prefer that one, because it would also work for other paths that may be affected in the future.

@adoroszlai
Copy link
Contributor

Fixed in 37213b7

@adoroszlai adoroszlai closed this Jan 22, 2024
@adoroszlai
Copy link
Contributor

Thanks again @swamirishi for debugging this problem.

@adoroszlai adoroszlai reopened this Nov 17, 2025
@adoroszlai adoroszlai merged commit beac327 into apache:master Nov 17, 2025
81 of 82 checks passed
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