[BUG?] The quarkus-maven-plugin (generate-code-tests) reads outside the project. #26636
Unanswered
nielsbasjes
asked this question in
Q&A
Replies: 1 comment
-
/cc @quarkusio/devtools |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Maven based Java project for which I want to add a Quarkus based rest & graphql servlet.
Because of dependency reasons I have created a subdirectory in my project without making it a module and without defining a parent in the quarkus pom.xml.
When I place this subdirectory in my existing maven project I have the problems I try to avoid.
When I place this subdirectory "anywhere" else it works as expected.
This baffled me so after several attempts to figure it out I deliberately broke the pom.xml of the parent directory which is outside the project I'm trying to build.
I made it an invalid XML by putting xxxxx somewhere it shouldn't be so anything you try with it must fail.
If I simply do
mvn clean compile
it all still works because this broken pom.xml is outside my project and maven does not read it:As you can clearly see this broken pom.xml in the upper directory is correctly ignored.
Also the quarkus-maven-plugin:2.10.1.Final:generate-code does not read it (which is correct)
When I want to take the build a step further (test phase) I get this:
Why is the quarkus-maven-plugin (version 2.10.1.Final) going to read files outside of the project during the generate-code-tests goal?
Is this a bug in this plugin or am I missing something?
How do I tell it to stop doing this?
Minimal reproduction:
Beta Was this translation helpful? Give feedback.
All reactions