Skip to content

Document how to override attributes already specified in Maven plugin configuration #21536

@stefano-salmaso

Description

@stefano-salmaso

Hi all,
I'm facing a problem with spring-boot-maven-plugin and spring-boot version >= 2.2.5-RELEASE.
If the plugin configuration has some configuration/arguments/argument, they are not replaced by the command line arguments.
This can be reproduced with an application that print the args received.

Having the plugin

<plugin>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-maven-plugin</artifactId>
  <configuration>
    <arguments>
      <argument>property1=xxx</argument>
    </arguments>
  </configuration>
</plugin>

when you run

mvn spring-boot:run

the args are:

property1=xxx

If you run

mvn spring-boot:run -Dspring-boot.run.arguments="property1=yyy"

again the output (wrong) is

property1=xxx

If you do the same with ver 2.2.4-RELEASE everything works fine.

Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions