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

Order of parsed Maven modules is sometimes not correct #600

Open
fabapp2 opened this issue Jul 18, 2023 · 6 comments
Open

Order of parsed Maven modules is sometimes not correct #600

fabapp2 opened this issue Jul 18, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@fabapp2
Copy link
Contributor

fabapp2 commented Jul 18, 2023

What version of OpenRewrite are you using?

I am using

  • OpenRewrite v8.5.1
  • Maven plugin v5.2.6

What is the smallest, simplest way to reproduce the problem?

This test

should fail because module-a/pom.xml should be parsed last as it depends on module-b/pom.xml

It parses this project

and the Maven build order is:

image

Whereas the order of parsing is multi-module-1, module-a, module-b

Are you interested in [contributing a fix to OpenRewrite]

I will provide a PR.

@fabapp2 fabapp2 added the bug Something isn't working label Jul 18, 2023
@timtebeek timtebeek moved this to Backlog in OpenRewrite Jul 18, 2023
@fabapp2
Copy link
Contributor Author

fabapp2 commented Oct 19, 2023

I fixed the link to the test, @timtebeek.

@timtebeek
Copy link
Contributor

This one is starting to make more sense after seeing the work done in

I don't think the work there will have fixed this issue too, but it does help me understand and validate the work you've done in

@timtebeek
Copy link
Contributor

@philippe-granet did you ever come across the problem outlined in this issue and the attached pull request #601 ? Seems like something that could have affected you too, especially when running in parallel, so wondering if you have any insight there.

@philippe-granet
Copy link
Contributor

What could be the impacts if the poms are loaded out of order?

@timtebeek
Copy link
Contributor

I'm not sure what exact problem Fabian had; do you recall @fabapp2?

@fabapp2
Copy link
Contributor Author

fabapp2 commented May 7, 2024

@timtebeek
Sorry, I lost sight of this issue.
IIRC the "problem" surfaced in tests when the expected order of poms did not match their build order calculated by Maven.
I can't recall if this was actually a problem but I'd assume the order of build files to be critical to work correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

3 participants