![]() # Install Maven by running the following command: Installing Apache Maven on Debian or Ubuntu with Apt # First, update the package index: The output should look something like this: Installing Maven on Linux Verify that it is correctly installed by typing the mvn -version command: $ mvn -version ln -s ~/Development/apache-maven-3.6.3 /usr/local/apache-mavenĨ.Create a symbolic link of the uncompressed file: Into your startup script( ~/.bashrc or ~/.zshrc etc.)ħ. Normally is edit and add:Įxport PATH=/Development/apache-maven-3.6.3/bin:$PATH uncompress it ( apache-maven-3.6.3-bin.zip) and added maven path into environment variable PATH.Add extracted apache-maven-3.6.3/bin to your $PATH.export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) and that $JAVA_HOME/bin is in your PATH environment variable (although that might not be necessary with the latest Mac OS X versions and the Oracle JDK). Make sure that JAVA_HOME is set to the location of your JDK, e.g.This environment variable can be used to supply extra options to Maven. Optional: Add the MAVEN_OPTS environment variable to specify JVM properties, e.g.The subdirectory apache-maven-3.6.3 will be created from the archive. apache-maven-3.6. to the directory you wish to install Maven 3.6.3. Extract the distribution archive, i.e.Move to home folder and create a new folder for maven artifacts:.Installing by hand: Download Maven from its homepage.With Mac OS X, Maven is not installed by default anymore. In “Edit environment variable” dialog, clicks on the New button and add this %MAVEN_HOME%\bin In system variables, find PATH, clicks on the Edit. ![]() button and add a MAVEN_HOME variable and point it to c:\opt\apache-maven-3.6.3 In “Environment variables” dialog, System variables, Clicks on the New. In System Properties dialog, select Advanced tab and clicks on the Environment Variables. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |