Changes for page Quick Start
Last modified by Paul Hoadley on 2025/01/30 02:09
From version 76.1
edited by Paul Hoadley
on 2023/12/25 06:05
on 2023/12/25 06:05
Change comment:
There is no comment for this version
To version 71.1
edited by Paul Hoadley
on 2023/11/13 11:56
on 2023/11/13 11:56
Change comment:
Renamed from xwiki:WOL.Quick Start
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,1 +1,1 @@ 1 -WO L.Home.WOProject-Maven.WebHome1 +WOProject-Maven - 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: #000000;26 +(% style="color: rgb(0,0,0);font-size: 24.0px;" %)Detailed Instructions... 27 27 28 -(% style="color: #000000;28 +(% style="color: rgb(0,0,0);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" linenumbers="true" title="/.bash_profile"}}63 +{{code language="text" theme="Emacs" title="~~/.bash_profile" linenumbers="true"}} 64 64 ... 65 65 export PATH=/usr/local/apache-maven/bin:$PATH 66 66 export JAVA_HOME=$(/usr/libexec/java_home) ... ... @@ -67,6 +67,7 @@ 67 67 ... 68 68 {{/code}} 69 69 70 +\\ 70 70 71 71 Whichever installation approach you've taken, you should now be able to do 72 72 ... ... @@ -83,7 +83,7 @@ 83 83 84 84 Advanced users can skip this step, but it's highly recommended. 85 85 86 -[[doc: WOL.Home.WOProject-Maven.Quick Start.QuickStartMaven Settings Configuration Guide.WebHome]]87 +[[doc:Quick Start Maven Settings Configuration Guide]] 87 87 88 88 **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. 89 89 ... ... @@ -95,8 +95,11 @@ 95 95 96 96 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: 97 97 98 -{{{mvn wobootstrap:install -DwebObjectsLibFolder=/Library/WebObjects/lib -DwebObjectsVersion=5.4.3}}} 99 +{{noformat}} 100 +mvn wobootstrap:install -DwebObjectsLibFolder=/Library/WebObjects/lib -DwebObjectsVersion=5.4.3 99 99 102 +{{/noformat}} 103 + 100 100 **NOTE**: WebObjects must be installed. 101 101 102 102 ... ... @@ -103,11 +103,11 @@ 103 103 104 104 [[https:~~/~~/repo.maven.apache.org/maven2>>url:https://repo.maven.apache.org/maven2||shape="rect"]] 105 105 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]}}}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]}}} 107 107 108 108 What does one do about this error? rrk (ray at ganymede.org) 2022 06-24 109 109 110 -**See** the [[doc: WOL.Home.WOProject-Maven.maven-wobootstrap-plugin.WebHome]] documentation for more information and options for specifying a specific version.114 +**See** the [[doc:maven-wobootstrap-plugin]] documentation for more information and options for specifying a specific version. 111 111 112 112 **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. 113 113 ... ... @@ -119,15 +119,18 @@ 119 119 120 120 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: 121 121 122 -{{{mvn archetype:generate -DarchetypeArtifactId=erxapplication-archetype \ 126 +{{noformat}} 127 +mvn archetype:generate -DarchetypeArtifactId=erxapplication-archetype \ 123 123 -DarchetypeGroupId=org.objectstyle.woproject.maven2 \ 124 - -DarchetypeVersion=2.1 }}}129 + -DarchetypeVersion=2.1 125 125 131 +{{/noformat}} 132 + 126 126 The maven-archetype-plugin will ask the required information to create the new project. 127 127 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]].135 +**NOTE**: You can use archetype catalogs to reduce the number of properties to set while creating a project. See the documentation of [[doc:woapplication-archetype]]. 129 129 130 -**NOTE**: You can use archetypes within Eclipse as described [[here>>doc:documentation. Home.WOLips Tutorials.Maven Create WO Application Project.WebHome||anchor="m2eclipse"]].137 +**NOTE**: You can use archetypes within Eclipse as described [[here>>doc:documentation.Maven Create WO Application Project||anchor="m2eclipse"]]. 131 131 132 132 **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"]]. 133 133 ... ... @@ -151,12 +151,18 @@ 151 151 152 152 Now, building your project with Maven is easy. Go to the project folder on Terminal and execute: 153 153 154 -{{{mvn clean package}}} 161 +{{noformat}} 162 +mvn clean package 155 155 164 +{{/noformat}} 165 + 156 156 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. 157 157 158 158 To install your project into your local repository: 159 159 160 -{{{mvn clean install}}} 170 +{{noformat}} 171 +mvn clean install 161 161 173 +{{/noformat}} 174 + 162 162 This will install your project into {{code language="none"}}~/.m2/repository/your/project/groupId/artifactId/version/...{{/code}}