-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 mvnd 1.X work and require Maven 3.9.6 to build Quarkus #41648
Conversation
This comment has been minimized.
This comment has been minimized.
@manofthepeace did you test with |
What I tried is the following;
|
If you want precises tests done please let me know. But I assume we will hit this somehow; apache/maven#1589 . I think its still what can be done atm without downgrading. but I think the fix proposed is still needed nevertheless as |
Do you happen to know which versions support I stumbled upon https://issues.apache.org/jira/browse/MNG-7038 but it's only marked for Maven 4. |
This PR actually uses From what I understood from apache/maven-mvnd#1031 (comment) . Is that the value is only available in settings this needs to be used that way. In Maven 4 I believe this can be removed as it can be used as property, so we can change it in the poms and other places. |
Yeah, my question was about when |
https://maven.apache.org/docs/3.9.2/release-notes.html
does that answer? |
@manofthepeace yes, perfect thanks. I will require Maven 3.9.6+ to build Quarkus. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I ran some more tests and something is odd. When running a
(and all the doc content is there). So there's something that needs fixing in the tree. |
Interesting. Could it be something with asciidoctor itself, or the asciidoctor maven plugin? In anycase do you think this is major, is mvnd used in general internally/ to build the asciidoc? I'll try to have a look eventually. If you have any pointers let me know. |
It's essential to have it working. I'm working on a patch. |
So the issue is that we end up with the following system property:
And well, when we try to get the Unfortunately, Note that the current behavior is very hackyish and we really need to do better and I probably need to revive my rewrite of the annotation processor. But ideally I would like to have a quick fix. The only thing that makes sense would be to pass the path as an argument to the annotation processor so that it's fully resolved by Maven first (you can't pass additional system properties to the compiler plugin). |
Ok, I figured it could be something like this, where the value was taken but not expanded by something out of maven.. This is unfortunate, I do not see a quick win at first glance. Not sure how far maven 4 is, but I would assume it would solve all of this.. and probably create a bunch of other things though..
well.. I feel like removing a property like this in a minor version was not the best, so recourse to hacks to bring it back, as maven themselves dont have a way around this makes it somewhat necessary, to reinstate the old behaviour.. I was hoping the I'll try to take a look. But I am short on ideas. |
@gsmet EDIT: nevermind I see it is used externally.. Only way I see is again super hacky, but it would be to go from the CWD and recurse to the root via the existence of a pom file. |
Yeah that's what I had in mind. |
But long term, we actually need the extension processor to generate content in the module itself so that should probably be easier (we want to avoid writing things outside of the scope of the module, to make caching with Develocity possible). I started working on that a while ago. I'll try to revive the PR and see if I can come up with something. |
I hope I will soon merge the new extension annotation processor and then I'll see if I can revive this one. |
Things look a lot better with the new extension annotation processor I just merged. I force pushed a rebase and will merge once CI is green. |
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.
Hmmm. I just had the following error:
Caused by: java.io.FileNotFoundException: /home/gsmet/git/quarkus/independent-projects/resteasy-reactive/common/processor/${maven.multiModuleProjectDirectory}/.forbiddenapis/banned-signatures-common.txt (No such file or directory)
So this will need more work.
Hmmm, actually, I'm dumb, it was for backporting to 3.13.2 so without these changes.
Status for workflow
|
Fixes #41323
Supersedes #41628
This is a bit of a hack. But it works.
The codebase has a lot of references to
maven.multiModuleProjectDirectory
not sure if everything does work. But for futureproofness this should be changed, I think.Occurences;
cc @gsmet