Changes for page Quick Start

Last modified by Paul Hoadley on 2025/01/30 02:09

From version 61.1
edited by Ramsey Gurley
on 2015/04/30 21:05
Change comment: There is no comment for this version
To version 63.1
edited by Ramsey Gurley
on 2015/05/01 13:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,31 +1,35 @@
1 1  == Outline ==
2 2  
3 -== Step 1: Installing Maven ==
3 +== Step 0: Install latest Java ==
4 4  
5 -Downloading and installing the latest version of [[Maven>>url:http://maven.apache.org/download||shape="rect"]] is the first step to start using 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 -In future, to keep this up to date:
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 forget to 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  
... ... @@ -41,10 +41,10 @@
41 41  
42 42  == Step 3: Installing WebObjects Libraries ==
43 43  
44 -Maven takes control of all your project's dependencies. To develop WebObjects applications, Maven has to reference the WebObjects jars. You have to [[install the WebObjects libraries into your local repository>>url:http://wocreator.sourceforge.net/repository-howto.html||shape="rect"]] to accomplish this:
48 +Maven takes control of all your project's dependencies. To develop WebObjects applications, Maven has to reference the WebObjects jars. You have to install the WebObjects libraries into your local repository to accomplish this:
45 45  
46 46  {{noformat}}
47 -mvn wobootstrap:install
51 +mvn wobootstrap:install -DwebObjectsLibFolder=/Library/WebObjects/lib -DwebObjectsVersion=5.4.3
48 48  
49 49  {{/noformat}}
50 50