Application arguments can be specified using arguments. The following sets two arguments: property1 and property2=42:

<project>
  ...
  <build>
    <properties>
      <my.value>42</my.value>
    </properties>
    ...
    <plugins>
      ...
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>2.2.5.RELEASE</version>
        <configuration>
          <arguments>
            <argument>property1</argument>
            <argument>property2=${my.value}</argument>
          </arguments>
        </configuration>
        ...
      </plugin>
      ...
    </plugins>
    ...
  </build>
  ...
</project>

On the command-line, arguments are separated by a space the same way jvmArguments are. If an argument contains a space, make sure to quote it. In the following example, two arguments are available: property1 and property2=Hello World:

mvn spring-boot:run -Dspring-boot.run.arguments="property1 'property2=Hello World'"