Wiki source code of Building the wonder source code with maven
Version 28.1 by Greg.Brown on 2009/03/23 11:20
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
20.1 | 1 | Building instructions are in the file BUILD.txt at the top level of the svn checkout. |
2 | |||
3 | https:~/~/wonder.svn.sourceforge.net/svnroot/wonder/trunk/Wonder/BUILD.txt | ||
4 | |||
5 | {{note}} | ||
![]() |
28.1 | 6 | These Maven built frameworks are slightly different than the ant built frameworks. For example, the Ajax framework has dependencies on json, and the ant built Ajax.framework includes a jabsorb-1.2.2.jar, whereas the Maven built Ajax.framework does not include this jabsorb-1.2.2.jar. This is, of course, because Maven dependencies are detailed in the pom.xml, and will be pulled in via standard Maven mechanisms. The frameworks are not interchangeable--at least without manipulating dependencies. |
![]() |
20.1 | 7 | |
8 | {{/note}} | ||
9 | |||
10 | Currently (February 2009) the wonder frameworks, applications, etc, can be built for WebObjects 5.3.x or 5.4.x; the choice is made by using a "profile" which has the value of wo53 or wo54, e.g.: | ||
11 | |||
12 | {{code}} | ||
13 | |||
14 | mvn clean install -P wo54 | ||
15 | |||
16 | {{/code}} | ||
17 | |||
![]() |
28.1 | 18 | This installs frameworks for WebObjects 5.4.x, some of which appear in your local repository with the wo54 qualifier: |
![]() |
20.1 | 19 | |
20 | {{code}} | ||
21 | |||
22 | ./repository/wonder/core/ERExtensions/5.0.0-SNAPSHOT/ERExtensions-5.0.0-SNAPSHOT-wo54.jar | ||
23 | |||
24 | {{/code}} | ||
25 | |||
![]() |
28.1 | 26 | and most frameworks are the same for either version of WebObjects, and have nor need any qualifier. |
![]() |
20.1 | 27 | |
![]() |
28.1 | 28 | To utilize these frameworks in a wonder supported project, one must add the correct dependency, and this will depend on which profile you want to link to. This is done by a maven "classifier", which is used to select the correct qualifier. A qualifier is part of the basic artifact coordinate system: |
![]() |
20.1 | 29 | |
![]() |
28.1 | 30 | <major version>.<minor version>.<incremental version>-<qualifier> |
![]() |
20.1 | 31 | |
![]() |
28.1 | 32 | For ERExtensions, this is: 5 . 0 . 0-SNAPSHOT - wo54; which selects the correct dependency for WebObjects 5.4.x. In the pom dependencies section this would be |
![]() |
20.1 | 33 | |
34 | {{code value="xml"}} | ||
![]() |
28.1 | 35 | |
36 | <dependency> | ||
37 | <groupId>wonder.core</groupId> | ||
38 | <artifactId>ERExtensions</artifactId> | ||
39 | <version>5.0.0-SNAPSHOT</version> | ||
40 | <classifier>wo54</classifier> | ||
41 | </dependency> | ||
![]() |
20.1 | 42 | |
43 | {{/code}} | ||
44 | |||
![]() |
28.1 | 45 | |
46 | |||
47 | See also the woapplication-archetype ( [[http://wiki.objectstyle.org/confluence/display/WOL/woapplication-archetype]] ) which can create wonder supported applications or frameworks which utilize the maven standard project layout. |