Changes for page Quick Start

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

From version 71.3
edited by Paul Hoadley
on 2023/11/13 11:56
Change comment: Update document after refactoring.
To version 76.1
edited by Paul Hoadley
on 2023/12/25 06:05
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,5 +1,5 @@
1 1  (% class="auto-cursor-target" %)
2 -\\
2 +
3 3  
4 4  {{tip title="2016 QuickStart"}}
5 5  See ([[http:~~/~~/lists.apple.com/archives/webobjects-dev/2016/Jan/msg00045.html>>url:http://lists.apple.com/archives/webobjects-dev/2016/Jan/msg00045.html||shape="rect"]])
... ... @@ -23,9 +23,9 @@
23 23  
24 24  ----
25 25  
26 -(% style="color: rgb(0,0,0);font-size: 24.0px;" %)Detailed Instructions...
26 +(% style="color:#000000; font-size:24.0px" %)Detailed Instructions...
27 27  
28 -(% style="color: rgb(0,0,0);font-size: 20.0px;" %)Step 0: Install latest Java
28 +(% style="color:#000000; font-size:20.0px" %)Step 0: Install latest Java
29 29  
30 30  If you're on a Mac, it's using old and busted Java 6. Update that to Java 8 ([[http:~~/~~/www.oracle.com/technetwork/java/javase/downloads/index.html>>url:http://www.oracle.com/technetwork/java/javase/downloads/index.html||shape="rect"]]).
31 31  
... ... @@ -60,7 +60,7 @@
60 60  
61 61  Then in your bash profile, ensure your path and java home are updated:
62 62  
63 -{{code language="text" theme="Emacs" title="~~/.bash_profile" linenumbers="true"}}
63 +{{code language="text" theme="Emacs" linenumbers="true" title="/.bash_profile"}}
64 64  ...
65 65  export PATH=/usr/local/apache-maven/bin:$PATH
66 66  export JAVA_HOME=$(/usr/libexec/java_home)
... ... @@ -67,7 +67,6 @@
67 67  ...
68 68  {{/code}}
69 69  
70 -\\
71 71  
72 72  Whichever installation approach you've taken, you should now be able to do
73 73  
... ... @@ -84,7 +84,7 @@
84 84  
85 85  Advanced users can skip this step, but it's highly recommended.
86 86  
87 -[[doc:WOL.Quick Start Maven Settings Configuration Guide]]
86 +[[doc:WOL.Home.WOProject-Maven.Quick Start.Quick Start Maven Settings Configuration Guide.WebHome]]
88 88  
89 89  **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.
90 90  
... ... @@ -96,11 +96,8 @@
96 96  
97 97  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:
98 98  
99 -{{noformat}}
100 -mvn wobootstrap:install -DwebObjectsLibFolder=/Library/WebObjects/lib -DwebObjectsVersion=5.4.3
98 +{{{mvn wobootstrap:install -DwebObjectsLibFolder=/Library/WebObjects/lib -DwebObjectsVersion=5.4.3}}}
101 101  
102 -{{/noformat}}
103 -
104 104  **NOTE**: WebObjects must be installed.
105 105  
106 106  
... ... @@ -107,11 +107,11 @@
107 107  
108 108  [[https:~~/~~/repo.maven.apache.org/maven2>>url:https://repo.maven.apache.org/maven2||shape="rect"]]
109 109  
110 -{{{NOTE: [ERROR] No plugin found for prefix 'wobootstrap' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/ray/.m2/repository), central ()] > [Help 1]}}}
106 +{{{NOTE: [ERROR] No plugin found for prefix 'wobootstrap' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/ray/.m2/repository), central ()] > [Help 1]}}}
111 111  
112 112  What does one do about this error? rrk (ray at ganymede.org) 2022 06-24
113 113  
114 -**See** the [[doc:WOL.maven-wobootstrap-plugin]] documentation for more information and options for specifying a specific version.
110 +**See** the [[doc:WOL.Home.WOProject-Maven.maven-wobootstrap-plugin.WebHome]] documentation for more information and options for specifying a specific version.
115 115  
116 116  **See** [[Maven Introduction to Repositories>>url:http://maven.apache.org/guides/introduction/introduction-to-repositories.html||shape="rect"]] if you want more information about Maven repositories.
117 117  
... ... @@ -123,18 +123,15 @@
123 123  
124 124  Archetypes are the fast way to create a new project using Maven and WOProject provides various archetypes of its own to get you started with WebObjects, or better, Wonder-based applications. Execute the following command to generate a basic Wonder application project:
125 125  
126 -{{noformat}}
127 -mvn archetype:generate -DarchetypeArtifactId=erxapplication-archetype \
122 +{{{mvn archetype:generate -DarchetypeArtifactId=erxapplication-archetype \
128 128   -DarchetypeGroupId=org.objectstyle.woproject.maven2 \
129 - -DarchetypeVersion=2.1
124 + -DarchetypeVersion=2.1}}}
130 130  
131 -{{/noformat}}
132 -
133 133  The maven-archetype-plugin will ask the required information to create the new project.
134 134  
135 -**NOTE**: You can use archetype catalogs to reduce the number of properties to set while creating a project. See the documentation of [[doc:WOL.woapplication-archetype]].
128 +**NOTE**: You can use archetype catalogs to reduce the number of properties to set while creating a project. See the documentation of [[doc:WOL.Home.WOProject-Maven.woapplication-archetype.WebHome]].
136 136  
137 -**NOTE**: You can use archetypes within Eclipse as described [[here>>doc:documentation.Maven Create WO Application Project||anchor="m2eclipse"]].
130 +**NOTE**: You can use archetypes within Eclipse as described [[here>>doc:documentation.Home.WOLips Tutorials.Maven Create WO Application Project.WebHome||anchor="m2eclipse"]].
138 138  
139 139  **NOTE:** You can see the list of available archetypes in the following location: [[http:~~/~~/wo-repository.moleque.com.br/nexus/content/groups/public/org/objectstyle/woproject/maven2/>>url:http://wo-repository.moleque.com.br/nexus/content/groups/public/org/objectstyle/woproject/maven2/||shape="rect"]].
140 140  
... ... @@ -158,18 +158,12 @@
158 158  
159 159  Now, building your project with Maven is easy. Go to the project folder on Terminal and execute:
160 160  
161 -{{noformat}}
162 -mvn clean package
154 +{{{mvn clean package}}}
163 163  
164 -{{/noformat}}
165 -
166 166  This goal will generate a WOA package inside the target folder of your project. It also generates two compressed packages: one for woapplication and other for the webserver resources.
167 167  
168 168  To install your project into your local repository:
169 169  
170 -{{noformat}}
171 -mvn clean install
160 +{{{mvn clean install}}}
172 172  
173 -{{/noformat}}
174 -
175 175  This will install your project into {{code language="none"}}~/.m2/repository/your/project/groupId/artifactId/version/...{{/code}}