-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Closed
Labels
status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by another
Description
Problem: It is too easy to break spring-boot:run by passing in garbage in the <jvmArguments> configuration. Currently it looks like this (not a list):
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>any kind of garbage</jvmArguments>
</configuration>
</plugin>Solution: The Maven plugin should allow passing in Java (JVM) system properties via some kind of list definition in XML.
Example solution:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>
<options>
<option>-Xms512m</option>
<option>-Xmx1024m</option>
</options>
<systemProperties>
<systemProperty>systemProperty1=value1</systemProperty>
<systemProperty>systemProperty2=value2</systemProperty>
</systemProperties>
</jvmArguments>
</configuration>
</plugin>where each <option> is passed in as-is to the JVM, and each <systemProperty> is pre-pended with a -D:
-Xms512m -Xmx1024m -DsystemProperty1=value1 -DsystemProperty2=value2heruan, tivadarbocz and ericlqj
Metadata
Metadata
Assignees
Labels
status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by another