-
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
Bug using a maven classifier in dev mode #9335
Comments
/cc @quarkusio/devtools |
cc @aloubyansky |
will do some test here #9337 |
This issue is about applying filtering to the classes dir. I.e. picking up a subset of all the classes in the |
I'm not starting to work on this right now, so I unassigned myself. |
As a workaround runing mvn quarkus:dev -DnoDeps is working, but dependencies must be installed in the local repo before. |
Is this still an issue? |
I just refreshed the demonstrator, it was done with quarkus 1. I had to add the jandex plugin in the first module, that contain the shared classifier jar (was this not a thing in quarkus 1 ?). Now by default the jandex index contains every class from the module, so if it is included like this in the shared jar, the receiving application will fail because the jandex contains class that are not in that jar. But it is possible to filter the content of the jandex:
With this config, it works as expected. |
Thanks for the update! |
@rmanibus if you add the |
I opened #44487 that fixes a few issues and will make it easier to support this kind of use-case. But the Jandex plugin config will either have to be adjusted with the filtering (as you found out) or simply removed. |
Describe the bug
I use a maven classifier to produce a shared jar between multiple microservices.
It seems that when runing mvn quarkus:dev, the qualifier is ignored and the full jar is used (beans outside the shared package are instantiated)
Expected behavior
Only the classes in the shared Jar are indexed when running mvn quarkus:dev.
Actual behavior
All the beans are present in the microservices (even those outside the shared package)
To Reproduce
Reproduced here:
https://github.com/rmanibus/Quarkus-Test
in the module2, when running mvn quarkus:dev all beans from module1 are instantiated (AppleResource in module1.app, which is not included in the shared jar).
Additional context
This only happen with the dev mode, it's working with the runner.
Also Adding
throw the following error:
The text was updated successfully, but these errors were encountered: