1/23/2024 0 Comments Maven install mac m1Maven home: /Users/USERNAME/apache-maven-3.9.1 OpenJDK 64-Bit Server VM Zulu17.44+15-CA (build 17.0.7+7-LTS, mixed mode, sharing) OpenJDK Runtime Environment Zulu17.44+15-CA (build 17.0.7+7-LTS) ![]() Open a new terminal window and verify the installation as follows: $ java -version export JAVA_HOME=$(/usr/libexec/java_home -v "17")Įxport JAVA_OPTS="-Xmx2048m =true"Įxport MAVEN_HOME=/home/USERNAME/tools/apache-maven-3.9.1Įxport MAVEN_OPTS="-Xmx2548m -XX:ReservedCodeCacheSize=128m =true"Įxport PATH=$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin Modify your ~\.bash_profile (if using Bash shell) or ~\.zshrc (if using zsh shell) in your home folder to set the required environment variables. Select the Path system variable, and click Edit.Īdd the following variables at the end of the Path variable: %JAVA_HOME%\bin %MAVEN_HOME%\bin This location might differ from the default values provided. The values for the JAVA_HOME and MAVEN_HOME variables depend on the location where Java and Maven are installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |