Changes for page Quick Start
Last modified by Paul Hoadley on 2025/01/30 02:09
From version 62.1
edited by Ramsey Gurley
on 2015/04/30 21:14
on 2015/04/30 21:14
Change comment:
There is no comment for this version
To version 63.1
edited by Ramsey Gurley
on 2015/05/01 13:23
on 2015/05/01 13:23
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,31 +1,35 @@ 1 1 == Outline == 2 2 3 -== Step 1: InstallingMaven==3 +== Step 0: Install latest Java == 4 4 5 - Downloadingandinstallingthe latestversion of[[Maven>>url:http://maven.apache.org/download||shape="rect"]]isthe firststep tostartusing this tool.5 +If you're on a Mac, it's using old and busted Java 6. Update that to Java 8. 6 6 7 -{{tip title="Mac Tip"}} 8 -install macports [[http:~~/~~/www.macports.org/install.php>>url:http://www.macports.org/install.php||shape="rect"]], then on the terminal: 7 +== Step 1: Installing Maven == 9 9 10 -{{noformat}} 11 -sudo port install maven3 9 +Downloading and installing the latest version of [[Maven>>url:https://maven.apache.org/download.cgi||shape="rect"]] is the first step to start using this tool. Download the binary tarball, copy it to /usr/local/, unpack it, soft link it and add the path to your bash_profile: 12 12 13 -{{/noformat}} 11 +{{code title="shell"}} 12 +sudo su 13 +cd /usr/local/ 14 +curl -O http://mirror.tcpdiag.net/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz 15 +tar -xzf apache-maven-3.3.3-bin.tar.gz 16 +ln -s apache-maven-3.3.3 apache-maven 17 +exit 18 +cd ~/ 19 +vi .bash_profile 20 +{{/code}} 14 14 15 - Infuture,tokeepthisuptodate:22 +Then in your bash profile, make your path look something like: 16 16 17 -{{noformat}} 18 -sudo port upgrade maven3 24 +export PATH=/usr/local/apache-maven/bin:$PATH 19 19 20 - {{/noformat}}26 +And tell maven where your non-mac Java home is located 21 21 22 - Don't forgetto install maven_select:28 +export JAVA_HOME=$(/usr/libexec/java_home) 23 23 24 -{{noformat}} 25 -sudo port install maven_select 30 +You should now be able to do 26 26 27 -{{/noformat}} 28 -{{/tip}} 32 +mvn -version 29 29 30 30 **NOTE**: It is very helpful if you understand some Maven concepts before continuing with this tutorial. See [[doc:General Maven Documentation]] for more information. 31 31