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

Close bootstrapped apps at the end of mojo execution if Maven extensions are disabled #24026

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

aloubyansky
Copy link
Member

This should help with #23655

@Postremus I am on vacation currently and can't verify whether this fixes the issue. What this change does is it makes every mojo that bootstraps an app to close it in case Maven extensions are disabled.

…jo execution in case Maven extensions are disabled
@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/maven labels Mar 1, 2022
@Postremus
Copy link
Member

I gave this change a quick test.
The OpenArchivePathTree instances are closed after execution of the generate-code goal - It therefore fixes at least the same cases as my original PR.
No NPE happens anymore if generate-code and build is used in conjunction.

(Again, I don't have a linux machine available atm, can't verifiy if the issue is fixed completly)

Thank you @aloubyansky !

@aloubyansky
Copy link
Member Author

Thanks @Postremus!

@gsmet gsmet merged commit 460b252 into quarkusio:main Mar 1, 2022
@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Mar 1, 2022
@gsmet
Copy link
Member

gsmet commented Mar 1, 2022

Thanks @aloubyansky for having a look while on vacation. Thanks @Postremus for checking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/maven
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants