Changes for page Quick Start

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

From version 69.1
edited by Ray Kiddy
on 2022/06/25 01:49
Change comment: add wuestion in re error
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
Parent
... ... @@ -1,1 +1,1 @@
1 -WOProject-Maven
1 +WOL.Home.WOProject-Maven.WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.kiddyr
1 +XWiki.paulh
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,13 +67,12 @@
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  
74 74  $ mvn -version
75 75  
76 -**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.
75 +**NOTE 1**: It is very helpful if you understand some Maven concepts before continuing with this tutorial. See [[doc:WOL.Home.WOProject-Maven.General Maven Documentation.WebHome]] for more information.
77 77  
78 78  **NOTE 2**: You might also like to install bash completion utilities:
79 79  
... ... @@ -84,7 +84,7 @@
84 84  
85 85  Advanced users can skip this step, but it's highly recommended.
86 86  
87 -[[doc: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,21 +96,19 @@
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 -\\[[https:~~/~~/repo.maven.apache.org/maven2>>url:https://repo.maven.apache.org/maven2||shape="rect"]]
108 108  
109 -{{{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]}}}
104 +[[https:~~/~~/repo.maven.apache.org/maven2>>url:https://repo.maven.apache.org/maven2||shape="rect"]]
110 110  
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]}}}
107 +
111 111  What does one do about this error? rrk (ray at ganymede.org) 2022 06-24
112 112  
113 -**See** the [[doc: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.
114 114  
115 115  **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.
116 116  
... ... @@ -122,18 +122,15 @@
122 122  
123 123  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:
124 124  
125 -{{noformat}}
126 -mvn archetype:generate -DarchetypeArtifactId=erxapplication-archetype \
122 +{{{mvn archetype:generate -DarchetypeArtifactId=erxapplication-archetype \
127 127   -DarchetypeGroupId=org.objectstyle.woproject.maven2 \
128 - -DarchetypeVersion=2.1
124 + -DarchetypeVersion=2.1}}}
129 129  
130 -{{/noformat}}
131 -
132 132  The maven-archetype-plugin will ask the required information to create the new project.
133 133  
134 -**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]].
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 135  
136 -**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"]].
137 137  
138 138  **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"]].
139 139  
... ... @@ -151,24 +151,18 @@
151 151  
152 152  After adding the project dependencies to your Eclipse build path, WOLips can build the project and you will be able to start developing and running the application.
153 153  
154 -**NOTE**: This tutorial assumes you have chosen the option 2. You can find more information about IDE integration [[here>>doc:General Maven Documentation||anchor="IDE Integration"]].
148 +**NOTE**: This tutorial assumes you have chosen the option 2. You can find more information about IDE integration [[here>>doc:WOL.Home.WOProject-Maven.General Maven Documentation.WebHome||anchor="IDE Integration"]].
155 155  
156 156  == Step 6: Building WebObjects Applications with Maven ==
157 157  
158 158  Now, building your project with Maven is easy. Go to the project folder on Terminal and execute:
159 159  
160 -{{noformat}}
161 -mvn clean package
154 +{{{mvn clean package}}}
162 162  
163 -{{/noformat}}
164 -
165 165  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.
166 166  
167 167  To install your project into your local repository:
168 168  
169 -{{noformat}}
170 -mvn clean install
160 +{{{mvn clean install}}}
171 171  
172 -{{/noformat}}
173 -
174 174  This will install your project into {{code language="none"}}~/.m2/repository/your/project/groupId/artifactId/version/...{{/code}}