Changes for page Maven Kicking the tyres without changing your project structure
Last modified by Henrique Prange on 2015/09/11 17:57
From version 19.1
edited by Henrique Prange
on 2008/06/15 19:35
on 2008/06/15 19:35
Change comment:
There is no comment for this version
To version 13.1
edited by Lachlan Deck
on 2008/06/15 18:39
on 2008/06/15 18:39
Change comment:
Continuing to flesh it out...
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. hprange1 +XWiki.ldeck - Content
-
... ... @@ -2,7 +2,7 @@ 2 2 3 3 {{info title="Recommended Homework (or pre-requisites)"}} 4 4 5 -It's _really_ worth doing your homework on maven in order to understand it. The place to start is Learning Maven found at [http://maven.apache.org]. Various guides are also found at[http://maven.apache.org/guides/].5 +It's _really_ worth doing your homework on maven in order to understand it. The place to start is Learning Maven found at http://maven.apache.org. Various guides are also found at http://maven.apache.org/guides/. 6 6 7 7 At the very least you want to have read through, and understood, the [Getting Started Tutorial|http://maven.apache.org/guides/getting-started/index.html]. 8 8 ... ... @@ -39,55 +39,33 @@ 39 39 Typical things that make up a pom are as follows. (Note: only pom identification is mandatory. All the others have defaults.) 40 40 41 41 1. pom identification (who am I?) 42 -The base triplet used to identify an artifact (i.e., product) 43 - 44 -{{noformat}} 45 - 42 + The base triplet used to identify an artifact (i.e., product) 43 + {{noformat}} 46 46 <artifactId>CustomExtensions</artifactId> 47 47 <groupId>com.mywostuff.frameworks</groupId> 48 48 <version>0.0.1-SNAPSHOT</version> 49 - 50 - 51 -{{/noformat}} 52 - 47 + {{/noformat}} 53 53 1. pom packaging (i.e., what are we building?) 54 -The default value for the packaging element is JAR if not specified. For the purposes of this exercise, we'll use JAR for the frameworks and woapplication for the applications, which requires the woproject maven plugin (TODO revisit this scenario with the apple maven plugin) 55 - 56 -{{noformat}} 57 - 49 + The default value for the packaging element is JAR if not specified. For the purposes of this exercise, we'll use JAR for the frameworks and woapplication for the applications, which requires the woproject maven plugin (TODO revisit this scenario with the apple maven plugin) 50 + {{noformat}} 58 58 <packaging>woapplication</artifactId> 59 - 60 - 61 -{{/noformat}} 62 - 52 + {{/noformat}} 63 63 1. pom parent identification (who do I belong to?) 64 - 65 -{{noformat}} 66 - 54 + {{noformat}} 67 67 <parent> 68 68 <artifactId>frameworks</artifactId> 69 69 <groupId>com.mywostuff</groupId> 70 70 </parent> 71 - 72 - 73 -{{/noformat}} 74 - 59 + {{/noformat}} 75 75 1. modules (a.k.a kids; who belongs to me?) 76 - 77 -{{noformat}} 78 - 61 + {{noformat}} 79 79 <modules> 80 80 <module>CustomExtensions</module> 81 81 <module>CustomBusinessLogic</module> 82 82 </modules> 83 - 84 - 85 -{{/noformat}} 86 - 66 + {{/noformat}} 87 87 1. dependencies (what do I need?) 88 - 89 -{{noformat}} 90 - 68 + {{noformat}} 91 91 <dependencies> 92 92 <dependency> 93 93 <groupId>log4j</groupId> ... ... @@ -102,16 +102,13 @@ 102 102 <scope>test</scope> 103 103 </dependency> 104 104 </dependencies> 105 - 106 - 107 -{{/noformat}} 108 - 83 + {{/noformat}} 109 109 1. build sources/resources (what do I have?) 110 110 1. properties and filtering resources (variable definitions) 111 111 1. dependency/plugin management (shared configuration and versioning) 112 112 1. repositories (where to find dependencies and plugins) 113 113 114 -Of course, with the plethora of plugins available for maven, this is only the tip of the iceberg. However, these main concepts will suffice for now. 89 +Of course, with the plethora of plugins available for maven, this is only the tip of the iceberg. However, these main concepts will suffice for now. 115 115 116 116 === Alternate File System Layout Concepts === 117 117 ... ... @@ -185,12 +185,6 @@ 185 185 186 186 details to come... 187 187 188 -=== Packaging Applications as True WAR === 189 - 190 -You can find steps to package WO Applications as True WAR [[here>>Packaging WO Applications as true WAR with Maven]]. 191 - 192 -more details to come... 193 - 194 194 === Project Inheritance === 195 195 196 196 details to come...