Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 573/379533 to your computer and use it in GitHub Desktop.
Save 573/379533 to your computer and use it in GitHub Desktop.
eclipse.ini
It is MS Windows specific.
Adapt the paths, but use the same lower-/upper case scheme for maximum compatibility (m2eclipse or java itself - don't exactly remember which, but other variants broke my build reproducible - relies on exactly that way to write the path like in the M2_RUNTIME variable. You can determine the exact "syntax" for your system at the command line with the `dir` command).
I use it to have jdk installed as non-admin at non-standard place, to use maven the in the same manner and to use maven over ssl-encrypted connections, when server certificates need to be accepted. The env.MAVEN_OPTS_JRE_TAB_VM_ARGS variable belongs to the JVM arguments tab in the Eclipse launch configuration dialog then.
The other (default ones) settings in eclipse.ini stay...
>8---
-vm
h:/jdk1.6.0/bin/javaw.exe
--launcher.XXMaxPermSize
256m
-vmargs
-Denv.M2_RUNTIME=H:\eclipse-extensions\runtimepath\apache-maven-2.2.1
-Denv.MAVEN_OPTS_JRE_TAB_VM_ARGS=-Xdebug -Djavax.net.debug=ssl:handshake -Djavax.net.ssl.keyStore=c:/dokume~1/${env_var:USERNAME}/.keystore -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=c:/dokume~1/${env_var:USERNAME}/.keystore -Djavax.net.ssl.trustStorePassword=changeit
-Xms40m
-Xmx256m
---8<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment