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 28.1
edited by Ramsey Gurley
on 2015/09/11 17:57
on 2015/09/11 17:57
Change comment:
There is no comment for this version
Summary
-
Page properties (4 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,0 +1,1 @@ 1 +WOLips Tutorials - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.ra msey1 +XWiki.hprange - Tags
-
... ... @@ -1,0 +1,1 @@ 1 +wikireview - Content
-
... ... @@ -143,7 +143,7 @@ 143 143 144 144 Assuming your building a framework, for example, the following is an extract from the relevant pom.xml. It specifies where to find your java source files and resources, we can put this in /trunk/pom.xml and then all the child pom.xml files will know we're using Fluffy Bunny Layout. Notice we've also defined the target path for each resource. (See the [[WOL:Maven Model#class_resource>>url:http://maven.apache.org/ref/2.0.9/maven-model/maven.html#class_resource||shape="rect"]] for a definition of targetPath) 145 145 146 -{{code title="pom.xml" 0="xml"}}146 +{{code 0="xml" title="pom.xml"}} 147 147 <...> 148 148 <build> 149 149 <sourceDirectory>Sources</sourceDirectory> ... ... @@ -289,9 +289,9 @@ 289 289 290 290 291 291 292 -{{attachments patterns="Info.plist" upload="false"/}}292 +{{attachments upload="false" patterns="Info.plist"/}} 293 293 294 -{{code title="/frameworks/pom.xml" 0="xml"}}294 +{{code 0="xml" title="/frameworks/pom.xml"}} 295 295 <?xml version="1.0" encoding="UTF-8"?> 296 296 <project xmlns="http://maven.apache.org/POM/4.0.0" 297 297 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ... ... @@ -417,7 +417,7 @@ 417 417 418 418 Since our CustomExtensions has no further dependencies, its pom.xml merely specifies its parent and its identity. 419 419 420 -{{code title="/frameworks/CustomBusinessLogic/pom.xml" 0="xml"}}420 +{{code 0="xml" title="/frameworks/CustomBusinessLogic/pom.xml"}} 421 421 <?xml version="1.0"?> 422 422 <project> 423 423 <!-- parent artifact --> ... ... @@ -436,7 +436,7 @@ 436 436 437 437 CustomBusinessLogic has a further dependency on CustomExtensions, so it specifies its parent, its identity, and the dependency. 438 438 439 -{{code title="/frameworks/CustomBusinessLogic/pom.xml" 0="xml"}}439 +{{code 0="xml" title="/frameworks/CustomBusinessLogic/pom.xml"}} 440 440 <?xml version="1.0"?> 441 441 <project> 442 442 <!-- parent artifact --> ... ... @@ -465,7 +465,7 @@ 465 465 466 466 Here's the definition for /apps/pom.xml which is shared by any sub-modules (i.e., ApplicationA and ApplicationB). Both apps need certain WebObjects frameworks, so we specify those only once for both, here in the parent pom. We also specify Fluffy Bunny Layout, and some maven plugins we want to use. Again, this is for both applications. 467 467 468 -{{code title="/apps/pom.xml" 0="xml"}}468 +{{code 0="xml" title="/apps/pom.xml"}} 469 469 <?xml version="1.0" encoding="UTF-8"?> 470 470 <project xmlns="http://maven.apache.org/POM/4.0.0" 471 471 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ... ... @@ -627,7 +627,7 @@ 627 627 628 628 With most stuff specified in the parent pom, ApplicationA needs only to specify its parent, its idenity, and add a couple of extra specific dependencies to those inherited from its parent. 629 629 630 -{{code title="/apps/ApplicationA/pom.xml" 0="xml"}}630 +{{code 0="xml" title="/apps/ApplicationA/pom.xml"}} 631 631 <?xml version="1.0"?> 632 632 <project> 633 633 <modelVersion>4.0.0</modelVersion> ... ... @@ -688,7 +688,7 @@ 688 688 689 689 === Packaging Applications as True WAR === 690 690 691 -You can find steps to package WO Applications as True WAR [[here>>doc:WOL.Packaging WO Applications as true WAR with Maven]]. 691 +You can find steps to package WO Applications as True WAR [[here>>doc:WOL.Home.WOProject-Maven.Packaging WO Applications as true WAR with Maven.WebHome]]. 692 692 693 693 === Eclipse Integration === 694 694
- Info.plist
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.6 KB - Content