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

Quarkus Maven Plugin for v2.13.2 fails with Flattened POM #28553

Closed
kjq opened this issue Oct 13, 2022 · 2 comments
Closed

Quarkus Maven Plugin for v2.13.2 fails with Flattened POM #28553

kjq opened this issue Oct 13, 2022 · 2 comments
Labels
area/maven kind/bug Something isn't working

Comments

@kjq
Copy link

kjq commented Oct 13, 2022

Describe the bug

This just happened when Renovate when to pull the latest version of Quarkus and perform the build - it says it cannot resolve the `.flattened-pom.xml".

We have not had any problems with Maven or the Maven Flatten Plugin or the Quarkus Maven Plugin before.

[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.13.2.Final:generate-code-tests (default) on project PROJECT: Quarkus code generation phase has failed: Failed to initialize Quarkus bootstrap Maven artifact resolver: Failed to load current project at /home/NAME/work/PROJECT/client/target/.flattened-pom.xml: Cannot invoke "java.io.File.toPath()" because the return value of "org.apache.maven.model.Model.getProjectDirectory()" is null -> [Help 1]

Ill watch to see if it was just a blip on the CI/CD side but wanted to point it out...

Expected behavior

Recognizes the POM as before and completes the Maven build.

Actual behavior

Cannot resolve the .flattened-pom.xml generated using the Maven Flatten Plugin

Output of java -version

17

Quarkus version or git rev

2.13.2.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Maven v3.8.4

Additional information

Sometimes resolving all the artifacts with a new release gives us a red herring so it may be that. Will watch/close if it is not.

@kjq kjq added the kind/bug Something isn't working label Oct 13, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 13, 2022

/cc @quarkusio/devtools @aloubyansky

@kjq kjq changed the title Quarkus Maven Plugin for v2.13.2 Final fails on Flattened POM Quarkus Maven Plugin for v2.13.2 fails with Flattened POM Oct 13, 2022
@aloubyansky
Copy link
Member

This is a duplicate of #28541, which has already been fixed in #28542. Sorry about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/maven kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants