Skip to content

Instantly share code, notes, and snippets.

@marweck
Last active October 16, 2018 12:38
Show Gist options
  • Save marweck/ffc062f8a9769ec4e894a62f5f5b9694 to your computer and use it in GitHub Desktop.
Save marweck/ffc062f8a9769ec4e894a62f5f5b9694 to your computer and use it in GitHub Desktop.
Maven Exec Plugin configuration. Should run with `mvn exec:exec`
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-Xms600m</argument>
<argument>-Xmx600m</argument>
<argument>-XX:MaxPermSize=512m</argument>
<argument>-Dfile.encoding=UTF8</argument>
<argument>-classpath</argument>
<classpath/>
<argument>(full_path_of_the_main_class)</argument>
</arguments>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment