The active profiles to use for a particular application can be specified using the profiles argument. The following configuration enables the foo and bar profiles:

<project>
  ...
  <build>
    ...
    <plugins>
      ...
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>2.2.4.RELEASE</version>
        <configuration>
          <profiles>
            <profile>foo</profile>
            <profile>bar</profile>
          </profiles>
        </configuration>
        ...
      </plugin>
      ...
    </plugins>
    ...
  </build>
  ...
</project>

The profiles to enable can be specified on the command line as well, make sure to separate them with a comma, that is:

mvn spring-boot:run -Dspring-boot.run.profiles=foo,bar