Wiki source code of maven-wobootstrap-plugin

Version 14.1 by Henrique Prange on 2008/04/23 14:58

Hide last authors
Henrique Prange 14.1 1 == Introduction ==
Lachlan Deck 6.1 2
Henrique Prange 14.1 3 The wobootstrap plug-in is used to import the WebObjects libraries to the Maven's local repository or a remote repository for sharing with other developers and projects (for WebObjects version 5.3 and later, the license is now included as part of the Xcode software license. Please review the license in the Xcode installer to verify if you are not breaking the current terms).
Lachlan Deck 6.1 4
Henrique Prange 14.1 5 This plug-in searches for the WebObjects jars and generates all the required information (groupId, artifactId and version) to import the libraries to the particular repository.
Lachlan Deck 6.1 6
Henrique Prange 14.1 7 The wobootstrap goals usually need to be executed once per WebObjects version.
Lachlan Deck 6.1 8
Henrique Prange 14.1 9 WebObjects 5.2 or later must be installed in order to use the wobootstrap plug-in. The supported platforms include MacOS X, Windows and Linux.
Lachlan Deck 6.1 10
Henrique Prange 14.1 11 == Goals Overview ==
Lachlan Deck 6.1 12
Henrique Prange 14.1 13 The wobootstrap plug-in has 2 goals:
Lachlan Deck 6.1 14
Henrique Prange 14.1 15 * **wobootstrap:install* goal is used to import the WebObjects libraries to the local repository. It works in a similar way to the [[install:install-file>>http://maven.apache.org/plugins/maven-install-plugin/]] goal, but the wobootstrap provides all the required information to install the jars.**
Lachlan Deck 6.1 16
Henrique Prange 14.1 17 * **woboostrap:deploy* goal is used to import the WebObjects libraries to the specified remote repository. It works in a similar way to the [[deploy:deploy-file>>http://maven.apache.org/plugins/maven-deploy-plugin/]] goal.**
Lachlan Deck 6.1 18
Henrique Prange 14.1 19 == Usage ==
20
21 === The wobootstrap:install Mojo ===
22
23 In most cases, wobootstrap:install doesn't need any configuration. It also doesn't need a Maven project to run.
24
Lachlan Deck 6.1 25 {{noformat}}
26
Henrique Prange 14.1 27 mvn wobootstrap:install
Lachlan Deck 6.1 28
29 {{/noformat}}
Henrique Prange 14.1 30
31 === The wobootstrap:deploy Mojo ===
32
33 The wobootstrap:deploy Mojo is used to install the WebObjects libraries to a remote repository (i.e. managed by an Enterprise Repository Manager). The full usage statement of the wobootstrap:deploy mojo can be described as:
34
35 {{noformat}}
36
37 mvn wobootstrap:deploy -Durl=file://C:\m2-repo \
38 -DrepositoryId=some.id
39
40 {{/noformat}}
41
42 If the url to deploy is not specified, the goal will fail. The repositoryId points to a server section in the settings.xml file. If you don't specify a repositoryId, Maven will try to extract authentication information using the default id 'remote-repository'.
43
44 == Tips ==
45
46 If the following error happens while using the wobootstrap:deploy goal: "Error deploying artifact: Unsupported Protocol: 'ftp': Cannot find wagon which supports the requested protocol: ftp"
47
48 See the solution [[here>>http://maven.apache.org/plugins/maven-deploy-plugin/faq.html]].