-
Notifications
You must be signed in to change notification settings - Fork 202
spring-boot generator can not handle multi-profile configuration #797
Comments
Seems to be a limitation of the Something to discuss ... |
In my case the first part of the application.yml defines the active profile, so it means that the SpringBootGenerator should be able to get this information exposing port for that profile. Of course this is only one possible case even because the active profile could be specified on the command line and not inside the same application.yml. |
We are trying to set the active springboot profile like so:
Not sure if this is the recommended way of doing it. But noticed that the |
So you are not using the spring-boot generator but you are specifying the image directly, right ? Please note that if you do it this way your create an specific image for this environment which can't be changed later on. Also, when you use OpenShift S2I builds then the definitions here are not use (i.e. the When you use a Docker build (kubernetes mode), then |
Can we detect active profiles from system environment or parameter (spring.profiles.active) when parsing YAML file? |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
@rhuss This is a common pattern in Spring Boot applications and wondering was there a fix to the problem reported here. For eg: in this configuration, I declare common properties under the
|
@rhuss @rohanKanojia wondering if there is a way to fix this ? I would be happy to provide a PR if I get some pointers about to where to start looking in the code...thanks !!! |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
ack, let me revisit this whenever I get time. |
Description
I have a Spring Boot application.yml file with following format :
Using the plugin I have the following error :
It seems that it's not able to handle the "---" separator.
Info
mvn -v
) : 3.3.9The text was updated successfully, but these errors were encountered: