Skip to content

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

  • Use plexus-archiver 4.2.2 for maven-dependency-plugin. 4.2.3+ has broken behavior on case-insensitive filesystem (e.g. macOS). codehaus-plexus/plexus-archiver@efd980d
  • Add compilation on macOS to the test matrix.

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

How was this patch tested?

Compile on macOS failed without the fix:

Error:  Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.6.1:unpack (include-dependencies) on project ozone-filesystem-hadoop2: Error unpacking file: /Users/runner/work/ozone/ozone/hadoop-ozone/ozonefs-shaded/target/ozone-filesystem-shaded-1.5.0-SNAPSHOT.jar to: /Users/runner/work/ozone/ozone/hadoop-ozone/ozonefs-hadoop2/target/classes: Error while expanding /Users/runner/work/ozone/ozone/hadoop-ozone/ozonefs-shaded/target/ozone-filesystem-shaded-1.5.0-SNAPSHOT.jar: /Users/runner/work/ozone/ozone/hadoop-ozone/ozonefs-hadoop2/target/classes/META-INF/LICENSE/LICENSE.aix-netbsd.txt: Not a directory -> [Help 1]

https://github.com/adoroszlai/ozone/actions/runs/7599905583/job/20697742175#step:7:3286

Passed with the fix:
https://github.com/adoroszlai/ozone/actions/runs/7602214715/job/20702677091

@adoroszlai adoroszlai added the build Pull request that modifies the build process label Jan 21, 2024
@adoroszlai adoroszlai self-assigned this Jan 21, 2024
Copy link
Contributor

@swamirishi swamirishi left a comment

Choose a reason for hiding this comment

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

Thanks for the patch, this looks good to me. @adoroszlai I will discard the other PR in favour of this one

@adoroszlai adoroszlai changed the title HDDS-10178. Shaded Jar build failure in case insensitive filesystem HDDS-10178. Shaded Jar build failure in case-insensitive filesystem Jan 22, 2024
@adoroszlai adoroszlai merged commit 37213b7 into apache:master Jan 22, 2024
@adoroszlai adoroszlai deleted the HDDS-10178 branch January 22, 2024 11:21
@adoroszlai
Copy link
Contributor Author

Thanks @swamirishi for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Pull request that modifies the build process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants