-
Notifications
You must be signed in to change notification settings - Fork 216
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
Allow to plug a custom rule resolver #19
Comments
I understand, but the rules are in addition to dependency ordering. In general, a good alternative would be to fix the pom to have explicit dependencies instead of implicit dependencies defined by the modules order. |
This is not what @lburgazzoli asks for. He'd rather like an SPI for plugging in a custom piece of code that can produce the missing rules on demand. In case Camel Quarkus and Quarkus, any form of hard coded rules will get outdated when there is a change in the dependencies of the itest. Having a dynamic lookup for that would avoid the maintenance costs. Moreover, the dynamic lookup implentation could perhaps be the same for Camel Quarkus, Quarkus and any other project having Quarkus extensions and their itests in the same source tree.
Yes, this should be preferred, but I am afraid that's not possible with Quarkus itests. The deployment modules are hidden by design and adding them would actually break the build. |
I see. I rejected the pluggable rule at first glance as I saw it as a bad way to solve pom problems. The reason is that we have the same kind of problems in |
What a flexibility! Sounds much easier than having a proper jar available in a remote Maven repo. |
At some point, we'll end up with gradle :P |
No, no, nobody asks for too much Gradle! |
Thinking of it again, for the particular case of Quarkus itests, it would be much more performant if the script is called just once for the whole source tree. Figuring out which modules in the source tree are extensions should be done just once. |
I added a way to provide a custom groovy provider.
or
Be aware that the url form could cause problems with relative directories though... |
As today to provide rules one has to create a property like:
Would be nice if mvnd would allow to plug a custom rule resolver so that there won't be the need to pollute poms.
As the example above is taken from camel-quarkus, one could develop a custom resolver that could compute the rules from the dependencies.
The text was updated successfully, but these errors were encountered: