Replies: 4 comments 1 reply
-
if you need to set system properties you'll want to set it with: rather than which are argument to your script.java which quarkus does not see. Does it work then ? |
Beta Was this translation helpful? Give feedback.
-
@maxandersen Sorry, I don't get your comment. My goal is to have the same configuration as the main quarkus application has. Currently, I do parsing of the profile aware properties by myself, but it would be nice, if jbang could provide support for that |
Beta Was this translation helpful? Give feedback.
-
jbang does not really know about quarkus but you can set -D properties via jbangargs which you quarkus script/app then should see. something like this:
|
Beta Was this translation helpful? Give feedback.
-
@ennishol I realise you might be affected by #1058 - thus please retry ensuring you use latest 0.83.0+ release of jbang and see if it changes things? |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to add support running jbang maven plugin in quarkus application with support of the quarkus profile and custom config sources, so that the script has access to config properties resolved as they would be in quarkus application?
mvn package -Dquarkus.config.locations=./src/main/resources/application-custom1.properties -Dquarkus.profile=staging
or
mvn package -Dquarkus.config.locations=./src/main/resources/application-custom2.properties -Dquarkus.profile=production
Beta Was this translation helpful? Give feedback.
All reactions