configroot/configmapping error

65 views
Skip to first unread message

William Burke

unread,
Sep 3, 2024, 8:58:17 AM9/3/24
to Quarkus Development mailing list
Sorry, didn't follow gsmet annotation changes...

What does this error mean??

IllegalStateException: This module is configured to use @ConfigMapping annotations but we found @ConfigRoot without a corresponding @ConfigMapping annotation.

@ConfigMapping isn't even visible to my deployment project.

--
Bill Burke
Red Hat

William Burke

unread,
Sep 3, 2024, 9:05:07 AM9/3/24
to Quarkus Development mailing list
What's unclear to me, do I just add smallrye config to my deployment pom only?  I don't use smallrye config in my runtime pom.

Guillaume Smet

unread,
Sep 3, 2024, 9:12:22 AM9/3/24
to quark...@googlegroups.com
Hi,

Some context might help but the change is documented here: https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.14#for-extension-developers .

I believe the message you pasted is not complete as the full message has a reference to `-AlegacyConfigRoot=true`.

You can just adjust the annotation processor config as documented in the link above or move to @ConfigMapping. If you didn't plan any large work on your extension, I recommend the former as it's a 2 mn change and legacy @ConfigRoot classes will be around for a loooong while still.

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAL%3DE%3DjSmkYc_cTiPk%3DvTpqRdmQQmiMCqcktZy4XDdF3axQDcmw%40mail.gmail.com.

William Burke

unread,
Sep 3, 2024, 9:36:52 AM9/3/24
to quark...@googlegroups.com
Sorry I read the docs you referenced, but I didn't reload pom in my IDE so ConfigMapping was not visible and I got confused.  Docs were good enough to get through this. TY.

Reply all
Reply to author
Forward
0 new messages