-
Notifications
You must be signed in to change notification settings - Fork 874
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
Revert "Use resolve() method that actually throws exception." #6228
Revert "Use resolve() method that actually throws exception." #6228
Conversation
…remote repository chaching." This reverts commit e2a14bf. fixes apache#6222 ArtifactResolutionExceptions when working with maven projects
tested:
|
I don't think that just throwing out a change is a good idea; without the change, the I an on vacation with limited access to net/PC, and not really able to make a change until Sun 23; an option would be to have two |
I am sure there are good reasons to propagate the exception down to the API users but this can't be simply enabled without making sure all API users are prepared for this change. Thats why this is causing regressions. I don't want to start fixing things during the RC phase which weren't quite ready for inclusion, we can apply this again for NB 20 and stabilize it there. |
Personally, I'm in favour of fast revert on regression, on both master (which is always meant to be release ready) and especially on delivery. Then introduce the corrected change via another PR taking care to review against the regression. Otherwise, some things become harder to revert later. In short, +1 to this PR, and we should take this approach more often. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I build this branch and my test cases still load clean (no excessive CPU use).
For the stacktrace I think the non-throwing behavior of MavenEmbedder#resolve
masked a bug in NBRepositoryModelResolver.resolveModel
, but I agree, getting this back into the know state is better, than having this bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the dev build with a few clean starts and seems to address issues I was seeing when opening projects.
This reverts commit e2a14bf, targets delivery
fixes #6222 ArtifactResolutionExceptions when working with maven projects
regression reproducible in RC1, see issue