Skip to content

Instantly share code, notes, and snippets.

@ToanPV90
Created October 21, 2017 14:45
Show Gist options
  • Save ToanPV90/4ef42cae1e6277807222a194ca666bc2 to your computer and use it in GitHub Desktop.
Save ToanPV90/4ef42cae1e6277807222a194ca666bc2 to your computer and use it in GitHub Desktop.
1. Run command sudo apt-get install maven, to install the latest Apache Maven.
2. Run command mvn -version to verify your installation.
3. Where is Maven installed?
The command apt-get install the Maven in /usr/share/maven.
$ls -ls /usr/share/maven
total 16
4 drwxr-xr-x 2 root root 4096 Dec 7 01:28 bin
4 drwxr-xr-x 2 root root 4096 Dec 7 01:28 boot
0 lrwxrwxrwx 1 root root 10 May 28 2012 conf -> /etc/maven
4 drwxr-xr-x 2 root root 4096 Dec 7 01:28 lib
4 drwxr-xr-x 2 root root 4096 Dec 7 01:28 man
The Maven configuration files are stored in /etc/maven
$ls -ls /etc/maven
total 16
4 -rw-r--r-- 1 root root 184 Jan 21 2012 m2.conf
12 -rw-r--r-- 1 root root 10224 Jan 21 2012 settings.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment