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

ICU-21205 Fix Eclipse failing to import the icu4j maven project #3107

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

mihnita
Copy link
Contributor

@mihnita mihnita commented Aug 15, 2024

Checklist
  • Required: Issue filed: https://unicode-org.atlassian.net/browse/ICU-21205
  • Required: The PR title must be prefixed with a JIRA Issue number.
  • Required: The PR description must include the link to the Jira Issue, for example by completing the URL in the first checklist item
  • Required: Each commit message must be prefixed with a JIRA Issue number.
  • Issue accepted (done by Technical Committee after discussion)
  • Tests included, if applicable
  • API docs and/or User Guide docs changed or added, if applicable

@mihnita mihnita requested review from echeran and srl295 August 15, 2024 22:09
@srl295
Copy link
Member

srl295 commented Aug 16, 2024

@catamorphism FYI

srl295
srl295 previously approved these changes Aug 16, 2024
@jira-pull-request-webhook
Copy link

Notice: the branch changed across the force-push!

  • icu4j/main/core/pom.xml is now changed in the branch
  • icu4j/pom.xml is different

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@mihnita
Copy link
Contributor Author

mihnita commented Aug 16, 2024

I realized something after Steven's approval, and fixed it.
Sorry.

With my previous change ALL the shared test files would be copied in ALL the modules,
because the build-helper-maven-plugin :: add-test-resource was done in the icu4j/pom.xml.

So I changed it to copy only the message2 files in main/core, where they are needed.
Following the same pattern we can later add other shared folders to common_tests, or collate.


Does it hurt to copy everything for every module?

Functionally not, these are test files in the *-tests.jar files.

But that is unclean.
And increases the number of files copied around when building, wasting time.

Cons: instead of a lump copy configured in the root pom.xml we would have to add this plugin to each module, with slightly different settings. We have to be more deliberate and think what goes where.

@mihnita mihnita requested a review from srl295 August 16, 2024 16:36
Copy link
Contributor

@echeran echeran left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for figuring out the config workaround that IDEs (or at least Eclipse) need to find all of the test resources. Now we a way forward to deduplicate test data across ICU while preserving our tooling support

@mihnita mihnita merged commit 40189ff into unicode-org:main Aug 16, 2024
16 checks passed
@mihnita
Copy link
Contributor Author

mihnita commented Aug 16, 2024

or at least Eclipse

I also checked with IntelliJ and VS Code, looks good.
But I don't usually work with these IDEs much (I use VSCode for smaller stuff)
So it might still be possible that certain things don't behave.

But the import and basic build seems fine.

@mihnita mihnita deleted the mihai_fix_eclipse_mvn_import branch August 16, 2024 20:42
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.

3 participants