Maven

Passing JVM parameters to Maven from the command line

Use the -D switch and clunk the JVM parameters onto that one, like so:

$ mvn clean install -DXmx1024m -DXX:MaxPermSize=256m

Always pass the same JVM parameters to Maven

Define MAVEN_OPTS in your .bashrc:

export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"

~ /home 🏠 ~ talks 💬 ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv 🧙 ~

Licensed under CC BY Creative Commons License ~ 📡 RSS feed ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ 🎥 youtube.com/@skybert