-
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
io.quarkus.qute.i18n.MessageBundle annotated class *__Bundle not found for multi-module gradle project in test mode #20064
Comments
A follow-up on this. I don't know if it helps but the error seems to be thrown from https://github.com/quarkusio/quarkus/blob/main/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractSharedContext.java#L96 Also, I have tried a similar multi-module setup like the one in the example above but this time using maven and it seems that the issue is also present there. |
It would be helpful if you could share the maven version of the reproducer as well. |
@mkouba thanks. Also checking the generated sources and based on my above comment I see that the problem is in the
and we get the error
however if you check the screenshot you'll see that the |
Yes, it's definitely some weird class loading problem. Let me check your reproducer first... |
So for some reason the BTW I think that the parent pom shouldn't define the |
Thanks, @mkouba let me try and I ll come back. |
@mkouba the |
I can see it being added to the
|
Sorry I was wrong I have a typo in my gradle poc and the group name is |
@aloubyansky I think I can see the problem - ArC and Qute have a slightly different application class predicate implementation (used by the |
@nikosk686 #20204 should fix the problem. Keep in mind that you would have to move the |
@mkouba |
What version of quarkus do you use? |
Describe the bug
Kind of related to this
In a similar multi-module gradle setup,
when we use a @MessageBundle annotated class
@MessageBundle(value = "alert")
public interface AlertMessages {
}
with several localized implementations generated from the provided messages/alert_xx.properties files
we get the following error when trying to run the integration tests in the
integration-test
sub-module in test modeThis error does not affect single module projects.
Expected behavior
The integration tets should be able to be executed in test mode as it happens in a single module project.
Actual behavior
The application fails to start in test mode
How to Reproduce?
clone the following repo https://github.com/nikosk686/quarkus-message-bundle-poc
checkout the
2.2.0-multi-module-integration-tests-error
branchand try to run the test located in the
integration-test
sub-moduleYou can also check the master branch which is a single module application and test runs correctly.
Output of
uname -a
orver
Linux dell-desktop 5.10.0-1045-oem #47-Ubuntu SMP Wed Aug 18 10:41:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "11.0.10" 2021-01-19 LTS OpenJDK Runtime Environment Corretto-11.0.10.9.1 (build 11.0.10+9-LTS) OpenJDK 64-Bit Server VM Corretto-11.0.10.9.1 (build 11.0.10+9-LTS, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.2.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 6.9
Additional information
The problem is not present in quarkus v1 (run the test in the
integration-test
sub-module in the1.13.7-working-single-module
branch of the above repo, it should pass)The text was updated successfully, but these errors were encountered: