Since 2.2.0 spring-boot-maven-plugin create 2 java process (may cause CreateProcess error=206). Need workaround to fix it
问题 Since Spring Boot 2.2.0.RELEASE spring-boot-maven-plugin mvn spring-boot:run -Drun.profiles=prod create two java process (see https://github.com/spring-projects/spring-boot/issues/17766). In my case: 14811 ? Sl 1:34 /usr/lib/jvm/java-11-oracle/bin/java -classpath /opt/maven/boot/plexus-classworlds-2.5.2.jar -Dclassworlds.conf=/opt/maven/bin/m2.conf -Dmaven.home=/opt/maven -Dlibrary.jansi.path =/opt/maven/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/opt/javaops org.codehaus.plexus