-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Qute - localization - multi-module project - need for duplicated resources/messages and beans.xml #24090
Comments
/cc @mkouba |
You need to add the
I think that this is something we should fix. Currently, we only load the message files from the app root which is probably a leftover from the original design/POC where only files from |
Correct |
FYI, so it appears in Google to future people searching for this issue. After this fix, the contrary occurs on migration, and you can get errors like this one (catching it now during Quarkus upgrade on one service we use qute).
Solution is obvious after finding this page, you can remove the errors by deleting the duplicated file in test folder. |
Describe the bug
Qute - localization - multi-module project - need for duplicated resources/messages and beans.xml
I have created https://github.com/rsvoboda/rsvoboda-playground/tree/master/qute-multimodule, api module contains all the necessary code and files, test module uses api module and focuses on testing.
qute-api
andqute-test
modules have the identical LocalizedMessagesTest. qute-api based tests work fine / without any workarounds.But to make qute-test based tests work I had to:
For point 1) Would it be possible to auto-discover
@MessageBundle
interfaces?It was not straightforward to figure out that I need to check https://quarkus.io/guides/cdi-reference#bean_discovery
For point 2) I don't really understand why is this dupplication needed, I would like to have everything in
qute-api
module.Expected behavior
No need to duplicate resources/messages, ideally also no beans.xml needed
Actual behavior
Need for duplicated resources/messages and beans.xml
How to Reproduce?
Use my sample qute-multimodule project
To see the failures:
Output of
uname -a
orver
No response
Output of
java -version
Java 17
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: