Configuring Maven Environment: Setting MAVEN_OPTS and M2_HOME …
https://www.javagists.com/configuring-maven-environment-setting-maven_opts-and-m2_home-in-windows-and-linux
WEBNov 19, 2023 · 3. Setting MAVEN_OPTS and M2_HOME in Linux. MAVEN_OPTS: Open the terminal and edit your profile settings, e.g., nano ~/.bashrc or ~/.zshrc. Add export MAVEN_OPTS="-Xms256m -Xmx512m" to set the memory allocation. M2_HOME: In the same profile file, add export M2_HOME=/opt/maven (replace /opt/maven with your …
DA: 56 PA: 24 MOZ Rank: 79