Changes for page Quick Start

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

From version 64.1
edited by Lachlan Deck
on 2016/01/13 14:41
Change comment: There is no comment for this version
To version 61.1
edited by Ramsey Gurley
on 2015/04/30 21:05
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ldeck
1 +XWiki.ramsey
Content
... ... @@ -1,60 +1,34 @@
1 1  == Outline ==
2 2  
3 -== Step 0: Install latest Java ==
4 -
5 -If you're on a Mac, it's using old and busted Java 6. Update that to Java 8.
6 -
7 7  == Step 1: Installing Maven ==
8 8  
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 via one of the following approaches.
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.
10 10  
11 -(a) You can use MacPorts ([[https:~~/~~/www.macports.org>>url:https://www.macports.org||shape="rect"]]) to install:
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:
12 12  
13 -{{code title="MacPorts usage" theme="Emacs" language="bash"}}
14 -$ sudo port install maven3
15 -{{/code}}
10 +{{noformat}}
11 +sudo port install maven3
16 16  
17 -(b) Or similarly via Homebrew ([[http:~~/~~/brew.sh>>url:http://brew.sh||shape="rect"]]):
13 +{{/noformat}}
18 18  
19 -{{code title="Homebrew usage" theme="Emacs" language="bash"}}
20 -$ brew install maven
21 -{{/code}}
15 +In future, to keep this up to date:
22 22  
23 -(c) Or manually by downloading the binary tarball, copying it to /usr/local/, unpacking it, soft linking it and adding the path to your bash_profile:
17 +{{noformat}}
18 +sudo port upgrade maven3
24 24  
25 -{{code title="Manual install" theme="Emacs" language="bash"}}
26 -$ sudo su
27 -$ cd /usr/local/
28 -$ curl -O http://mirror.tcpdiag.net/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz
29 -$ tar -xzf apache-maven-3.3.3-bin.tar.gz
30 -$ ln -s apache-maven-3.3.3 apache-maven
31 -$ exit
32 -$ cd ~/
33 -$ vi .bash_profile
34 -{{/code}}
20 +{{/noformat}}
35 35  
36 -Then in your bash profile, ensure your path and java home are updated:
22 +Don't forget to install maven_select:
37 37  
38 -{{code title="~~/.bash_profile" theme="Emacs" linenumbers="true" language="text"}}
39 -...
40 -export PATH=/usr/local/apache-maven/bin:$PATH
41 -export JAVA_HOME=$(/usr/libexec/java_home)
42 -...
43 -{{/code}}
24 +{{noformat}}
25 +sudo port install maven_select
44 44  
45 -
27 +{{/noformat}}
28 +{{/tip}}
46 46  
47 -Whichever installation approach you've taken, you should now be able to do
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.
48 48  
49 -$ mvn -version
50 -
51 -**NOTE 1**: It is very helpful if you understand some Maven concepts before continuing with this tutorial. See [[doc:General Maven Documentation]] for more information.
52 -
53 -**NOTE 2**: You might also like to install bash completion utilities:
54 -
55 -* See this superuser answer for bash-completion installation: ([[http:~~/~~/superuser.com/questions/288438/bash-completion-for-commands-in-mac-os-x>>url:http://superuser.com/questions/288438/bash-completion-for-commands-in-mac-os-x||shape="rect"]]).
56 -* See also the following github repo for maven-bash-completion: ([[https:~~/~~/github.com/juven/maven-bash-completion>>url:https://github.com/juven/maven-bash-completion||shape="rect"]]).
57 -
58 58  == Step 2: Configuring your Maven Settings ==
59 59  
60 60  Advanced users can skip this step, but it's highly recommended.
... ... @@ -63,16 +63,14 @@
63 63  
64 64  **NOTE for those who know what to do**: You can download the complete and most recent settings.xml [[here>>attach:settings.xml]] and install it to ~~/.m2/settings.xml.
65 65  
66 -Download the [[archetype-catalog.xml>>url:http://maven.wocommunity.org/content/groups/public/archetype-catalog.xml||shape="rect"]] and copy it to ~~/.m2/archetype-catalog.xml
67 -
68 68  See [[Maven Settings Reference>>url:http://maven.apache.org/settings.html||shape="rect"]] if you want more information about additional options for the settings.xml file.
69 69  
70 70  == Step 3: Installing WebObjects Libraries ==
71 71  
72 -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:
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:
73 73  
74 74  {{noformat}}
75 -mvn wobootstrap:install -DwebObjectsLibFolder=/Library/WebObjects/lib -DwebObjectsVersion=5.4.3
47 +mvn wobootstrap:install
76 76  
77 77  {{/noformat}}
78 78