quarkus.config.locations cannot be changed at runtime anymore

670 views
Skip to first unread message

Den

unread,
Oct 28, 2021, 3:53:04 AM10/28/21
to Quarkus Development mailing list
Hello,
I have a common application.properties file and also some specific application-*.properties files, which would be selected additionally to application.properties at runtime with `quarkus.config.locations` property. But this doesn't work anymore:

java -jar -Dquarkus.config.locations=application-foo.properties -Dquarkus.profile=production target/quarkus-app/*.jar

2021-10-28 09:45:25,667 WARN  [io.qua.run.con.ConfigRecorder] (main) Build time property cannot be changed at runtime:
 - quarkus.config.locations was 'null' at build time and is now 'application-foo.properties'

With quarkus 2.1.3 it used to work just fine. Is this a bug?

thanks!

Roberto Cortez

unread,
Oct 28, 2021, 6:04:57 AM10/28/21
to denni...@gmail.com, Quarkus Development mailing list
Hi Den,

I’ll have a look.

Can you confirm if no configuration is actually loaded or is just the warning that you are seeing?

Cheers,
Roberto

--
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/b065d26a-a86a-4468-b60d-e9d2caf08f27n%40googlegroups.com.

Den

unread,
Oct 28, 2021, 6:30:18 AM10/28/21
to Quarkus Development mailing list
thanks Roberto. It's indeed only a warning. I had a problem with something else and was fooled by the warning message, that the property cannot be changed

Roberto Cortez

unread,
Oct 28, 2021, 6:48:34 AM10/28/21
to denni...@gmail.com, Quarkus Development mailing list
Thanks Den,

I think the warning is there for some time. It shouldn’t. Let me fix that.

Cheers,
Roberto

Reply all
Reply to author
Forward
0 new messages