https://github.com/zipcodecore/java.maven_introduction
https://github.com/zipcodecore/java.maven_introduction
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zipcodecore/java.maven_introduction
- Owner: ZipCodeCore
- Created: 2020-02-12T15:33:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-12T15:37:58.000Z (almost 6 years ago)
- Last Synced: 2025-01-08T12:41:27.910Z (12 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Download maven
[Download](https://maven.apache.org/download.cgi)
# Unpack
```
tar xvzf apache-maven-3.6.3-bin.tar.gz
sudo mv apache-maven-3.6.3 /usr/local/
```
# Add to PATH
### NOTE
This example assumes you are using bash as your shell. You can make bash your default shell by issuing the following command:
```
chsh -s /bin/bash
```
More Details [here](https://www.howtogeek.com/444596/how-to-change-the-default-shell-to-bash-in-macos-catalina/).
### Using your editor of choice update .bash_profile.
```
vim ~/.bash_profile
```
### Edit the bash profile so that the location of the apache bin folder is included in the the path variable.
```
export PATH="/usr/local/apache-maven-3.6.3/bin:$PATH"
```
### Re-load bash profile.
```
source ~/.bash_profile
```
# Validate
```
mvn --version
```
# Complete the Maven in 5 Minutes tutorial
[Maven in 5 minutes](https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html)