How to set both VM Params and Program args using exec-maven-plugin?
问题 I am using exec-maven-plugin to run java app. I need to pass both JVM params and program arguments. I am setting JVM params like this: <artifactId>exec-maven-plugin</artifactId> <version>1.6.0</version> <executions> <execution> <id>MyId</id> <goals> <goal>java</goal> </goals> <configuration> <mainClass>MyClass</mainClass> <arguments> <argument>-XX:+UseG1GC</argument> <argument>-Xms2G</argument> <argument>-Xmx2G</argument> </arguments> </configuration> </execution> ... and run the program: mvn