mvn java:exec with increased memory

I use "mvn exec:java" to run my program:

mvn exec:java -Dexec.mainClass="..." -Dexec.args="..."

I didn't find to change the maximum memory allocation to the JVM.

I tried -Dexec.commandlineArgs="..." but that didn't work...


<commandlineArgs> (or -Dexec.args when given in the CLI) is for specifying the arguments given to the program, not the JVM.

As exec:java executes a Java program in the same VM as the Maven one, just change the Maven JVM memory settings (so MAVEN_OPTS) to get more memory for your exec:java command.

You can use exec:exec to run java in separate process. Then you can specify any arguments (including -Xmx). See for more details and for an example .

Need Your Help

Run time insert using bulk update ,giving an internal error?

oracle plsql dynamic-sql

I am trying to make a run time table named dynamic and inserting data into it from index by table using bulk update,but when i am trying to execute it this error is coming:

I have a parser to make, i'd like to learn proper parsing

javascript parsing markup concept

I want to parse text with javascript. The syntax i want to parse is a markup language. this language has 2 main kind of markup: