MicroShed / boost

Boost Maven and Gradle plugins for MicroProfile development
Eclipse Public License 1.0
27 stars 13 forks source link

SpringBoot applications don't honor -Dserver.port CLI override when executing boost:run goal. #215

Open scottkurz opened 5 years ago

scottkurz commented 5 years ago

I can do: java -Dserver.port=8081 -jar target/my.jar

to override the server.port property but if I do: mvn boost:run -Dserver.port=8081

the override has no effect.

OTOH, if I use a non-Boost SpringBoot app I can do this to override. mvn spring-boot:run -Dserver.port=8081

scottkurz commented 5 years ago

I'd assume the same issue applies when using 'start', 'debug' goals.

Opened this after trying with Maven. Not sure if this applies for Gradle as well.