Wiki source code of Maven Kicking the tyres without changing your project structure
Version 16.1 by Lachlan Deck on 2008/06/11 19:46
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | So you're interested in //kicking the maven tyres//, so to speak. It's worth doing some 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/. | ||
2 | |||
3 | But let's assume you want to try it without having to change your current project structure. Maven has what it calls //standards//, such as the [[standard directory layout>>http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html_standard]] but there are numerous options for subverting or extending those standards in order to suit other needs. | ||
4 | |||
5 | {{code title="pom.xml"}} | ||
6 | |||
7 | <...> | ||
8 | <build> | ||
9 | <sourceDirectory>src</sourceDirectory> | ||
10 | <testSourceDirectory>tests</testSourceDirectory> | ||
11 | <resources> | ||
12 | <resource> | ||
13 | <resource> | ||
14 | <targetPath>Resources</targetPath> | ||
15 | <filtering>false</filtering> | ||
16 | <directory>Components</directory> | ||
17 | </resource> | ||
18 | <resource> | ||
19 | <targetPath>Resources</targetPath> | ||
20 | <filtering>false</filtering> | ||
21 | <directory>Resources</directory> | ||
22 | </resource> | ||
23 | <resource> | ||
24 | <targetPath>WebServerResources</targetPath> | ||
25 | <filtering>false</filtering> | ||
26 | <directory>WebServerResources</directory> | ||
27 | </resource> | ||
28 | </resource> | ||
29 | </resources> | ||
30 | </build> | ||
31 | <...> | ||
32 | |||
33 | {{/code}} | ||
34 | |||
35 | more details to come... |