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

Make sure the app model is initialized from the POMs provided by the Maven plugin #28419

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

aloubyansky
Copy link
Member

Fix #28375

This change makes sure the quarkus-maven-plugin can bootstrap an app using POMs manipulated by Maven extensions.

There are a couple of cases when we can't re-use the POMs provided by the Maven plugin API. For example, when we launched an app in dev mode and POM file was modified, which triggered a reload. In this case, the POMs provided by the Maven plugin API have to be abandoned and we need to read the new versions of the POMs directly from the disk bypassing the enabled Maven extensions. The other one would be bootstrapping apps for tests, where we don't have access to the original POMs provided by the Maven plugin API.

@quarkus-bot quarkus-bot bot added area/core area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/maven labels Oct 6, 2022
Maven plugin that could be manipulated by Maven extensions
@gsmet
Copy link
Member

gsmet commented Oct 6, 2022

@aloubyansky is it really safe to backport?

@aloubyansky
Copy link
Member Author

It should be safe. If we want to support POM manipulating Maven extensions in 2.13, we'll need this change backported. But I am not insisting on the backport. We could do it on demand later, I suppose.

@quarkus-bot
Copy link

quarkus-bot bot commented Oct 6, 2022

Failing Jobs - Building a426f6a

Status Name Step Failures Logs Raw logs
✔️ JVM Tests - JDK 11
✔️ JVM Tests - JDK 17
JVM Tests - JDK 17 MacOS M1 Set up runner ⚠️ Check → Logs Raw logs
✔️ JVM Tests - JDK 18

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

Successfully merging this pull request may close these issues.

Quarkus fails when using jgitver
3 participants