Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Have the possibility to specify the spring profiles being used #1364

@a3aanwisse

Description

@a3aanwisse

Description

When using the spring-boot generator like this:

<generator>
  <includes>
    <include>spring-boot</include>
  </includes>
  <config>
    <spring-boot>
      <registry>${docker.registry.host}</registry>
      <name>${kubernetes.deploy.project}/%a:%l</name>
    </spring-boot>
  </config>
</generator>

the generated result always starts up using the default application.yml.
Is it possible to extend the plugin with an option to specify which spring profile is active so we can use this to roll out to different environments (dev, prod, acc)?

Info

We now use our own image which specifies the profile using

<entryPoint>
  <exec>
    <arg>java</arg>
    <arg>-jar</arg>
    <arg>-Dspring.profiles.active=prod</arg>
    <arg>/opt/${project.artifactId}-${project.version}.jar</arg>
  </exec>
</entryPoint>
  • f-m-p version : 3.5.41

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/never-stalePin this issue to get never marked as stale by stale-bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions