Changes for page WOProject-Maven

Last modified by Ulrich Köster on 2011/08/20 20:03

From version 39.1
edited by Henrique Prange
on 2008/04/23 16:37
Change comment: There is no comment for this version
To version 63.1
edited by Henrique Prange
on 2006/10/01 18:36
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,60 +1,74 @@
1 1  This is the home page for the Maven Plugins space.
2 2  
3 -[[Maven 2.0.9>>http://maven.apache.org/download.html]] is recommended.
4 -
5 5  == WOProject Maven2 Plugins ==
6 6  
7 7  * [[maven-japplication-plugin]]: A Maven plugin for assembling native launchers of Java applications for a number of OS platforms.
8 -* [[maven-wobootstrap-plugin]]:
9 -* [[maven-wolifecycle-plugin]]:
6 +* [[maven-woproject-plugin]]
10 10  * Maven2 WebObjects Archetypes
11 -** [[woapplication-archetype]] (new)
12 -** [[maven-archetype-woapplication]] (deprecated)
8 +** [[maven-archetype-woapplication]]
13 13  
14 -== Why use Maven? ==
10 +== Getting Started ==
15 15  
16 -* http:~/~/www.oreillynet.com/onjava/blog/2007/11/why_maven.html
17 -* http:~/~/www.infoq.com/news/2008/01/maven-debate
12 +* Install [[Maven2>>http://maven.apache.org]] on a local machine.
13 +* Add ObjectStyle Maven2 repository to the project POM //(we may distribute the plugins via Ibiblio at some point too)//. E.g.:
18 18  
19 -== Maven Principles ==
15 +{{code title="pom.xml"}}
20 20  
21 -* http:~/~/maven.apache.org/what-is-maven.html
17 +<pluginRepositories>
18 + <pluginRepository>
19 + <id>objectstyle</id>
20 + <name>ObjectStyle Public Maven2 repo</name>
21 + <url>http://objectstyle.org/maven2</url>
22 + <layout>default</layout>
23 + <snapshots>
24 + <enabled>true</enabled>
25 + <updatePolicy>daily</updatePolicy>
26 + <checksumPolicy>ignore</checksumPolicy>
27 + </snapshots>
28 + <releases>
29 + <enabled>true</enabled>
30 + </releases>
31 + </pluginRepository>
32 +...
33 +</pluginRepositories>
22 22  
23 -== Getting Started ==
35 +{{/code}}
24 24  
25 -* http:~/~/maven.apache.org/guides/getting-started/index.html
26 -* http:~/~/www.developer.com/lang/article.php/10924_3510331_1
27 -* http:~/~/www.javaworld.com/javaworld/jw-12-2005/jw-1205-maven.html?lsrc=jwrss
28 -* Maven: The Definitive Guide (book): http:~/~/www.sonatype.com/book/
29 -* Better Builds with Maven (book): http:~/~/www.devzuz.com/web/guest/products/resources#BBWM
37 +* Plugins are bound to the build lifecycle via "project/build/plugins" section of the POM. Here is a general example, for more details see documentation of individual plugins:
30 30  
31 -== Repository Managers ==
39 +{{code title="pom.xml"}}
32 32  
33 -=== What is a Repository Manager? ===
41 +<build>
42 + <plugins>
43 + <plugin>
44 + <groupId>org.objectstyle.woproject.maven2</groupId>
34 34  
35 -* http:~/~/maven.apache.org/repository-management.html
46 + plugin specific information goes here...
36 36  
37 -=== Available Repository Managers ===
48 + </plugin>
49 + </plugins>
50 +</build>
38 38  
39 -* Archiva: http:~/~/maven.apache.org/archiva/
40 -* Artifactory: http:~/~/www.jfrog.org/sites/artifactory/latest/
41 -* Nexus: http:~/~/nexus.sonatype.org/
52 +{{/code}}
42 42  
43 -== Enterprise Super POM ==
54 +{{info title="Useful Information"}}
44 44  
45 -* http:~/~/www.javaworld.com/javaworld/jw-05-2006/jw-0529-maven.html
46 -* http:~/~/maven.apache.org/guides/introduction/introduction-to-the-pom.html
47 -* http:~/~/maven.apache.org/pom.html
56 +By default, Maven will search the groupId org.apache.maven.plugins for prefix-to-artifactId mappings for the plug-ins it needs to perform a given build. However, WOProject maven plug-ins belong to a different group: *org.objectstyle.woproject.maven2*. Since the Maven project is assumed to have control over the default plug-in groupId, we can configure Maven to search other groupId locations for plugin-prefix mappings.
48 48  
49 -== IDE Integration ==
58 +In the Maven settings file (per-user: ~/.m2/settings.xml; global: $M2_HOME/conf/settings.xml), you can provide a custom pluginGroups section, listing the plugin groupIds you want to search (each groupId goes in its own pluginGroup sub-element). For example, if your projects use a WOProject maven plug-in, you might have the following in your settings:
50 50  
51 -* M2Eclipse: http:~/~/m2eclipse.codehaus.org/
52 -* Q4E: http:~/~/code.google.com/p/q4e/
60 +{code:xml|title=settings.xml}
61 +<settings>
62 +...
63 + <pluginGroups>
64 + <pluginGroup>org.objectstyle.woproject.maven2</pluginGroup>
65 + </pluginGroups>
66 +...
67 +</settings>
68 +{code}
53 53  
54 -== Building woproject with maven ==
70 +Now you can directly execute plug-ins, i.e. *mvn woproject:goal* instead of *mvn org.objectstyle.woproject.maven2:maven-woproject-plugin:goal*.
55 55  
56 -[[Building the woproject source code with maven]]
72 +Reference: http://maven.apache.org/guides/introduction/introduction-to-plugin-prefix-mapping.html.
57 57  
58 -== Building wonder with maven ==
59 -
60 -[[Building the wonder source code with maven]]
74 +{{/info}}