Wiki source code of Building the wonder source code with maven
Version 33.1 by Greg.Brown on 2009/02/16 09:49
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
32.1 | 1 | Building instructions are in the file BUILD.txt at the top level of the CVS checkout. |
![]() |
20.1 | 2 | |
![]() |
32.1 | 3 | http:~/~/wonder.cvs.sourceforge.net/*checkout*/wonder/Wonder/BUILD.txt?revision=HEAD |
![]() |
20.1 | 4 | |
5 | 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.: | ||
6 | |||
7 | {{code}} | ||
8 | |||
![]() |
32.1 | 9 | mvn clean install -P wo53 |
![]() |
20.1 | 10 | |
11 | {{/code}} | ||
12 | |||
![]() |
32.1 | 13 | This installs frameworks for WebObjects 5.3.x, some of which appear in your local repository with the wo53 qualifier: |
![]() |
20.1 | 14 | |
15 | {{code}} | ||
16 | |||
![]() |
32.1 | 17 | ./repository/wonder/core/ERExtensions/5.0.0-SNAPSHOT/ERExtensions-5.0.0-SNAPSHOT-wo53.jar |
![]() |
20.1 | 18 | |
19 | {{/code}} | ||
20 | |||
![]() |
28.1 | 21 | and most frameworks are the same for either version of WebObjects, and have nor need any qualifier. |
![]() |
20.1 | 22 | |
![]() |
28.1 | 23 | 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 | 24 | |
![]() |
28.1 | 25 | <major version>.<minor version>.<incremental version>-<qualifier> |
![]() |
20.1 | 26 | |
![]() |
32.1 | 27 | For ERExtensions, this is: 5 . 0 . 0-SNAPSHOT - wo53; which selects the correct dependency for WebObjects 5.3.x. In the pom dependencies section this would be |
![]() |
20.1 | 28 | |
29 | {{code value="xml"}} | ||
![]() |
28.1 | 30 | |
31 | <dependency> | ||
32 | <groupId>wonder.core</groupId> | ||
33 | <artifactId>ERExtensions</artifactId> | ||
34 | <version>5.0.0-SNAPSHOT</version> | ||
![]() |
32.1 | 35 | <classifier>wo53</classifier> |
![]() |
28.1 | 36 | </dependency> |
![]() |
20.1 | 37 | |
38 | {{/code}} | ||
39 | |||
![]() |
28.1 | 40 | |
41 | |||
42 | 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. |