Maven Kicking the tyres without changing your project structure
Version 16.1 by Lachlan Deck on 2008/06/11 19:46
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/.
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 but there are numerous options for subverting or extending those standards in order to suit other needs.
pom.xml
<...>
<build>
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>tests</testSourceDirectory>
<resources>
<resource>
<resource>
<targetPath>Resources</targetPath>
<filtering>false</filtering>
<directory>Components</directory>
</resource>
<resource>
<targetPath>Resources</targetPath>
<filtering>false</filtering>
<directory>Resources</directory>
</resource>
<resource>
<targetPath>WebServerResources</targetPath>
<filtering>false</filtering>
<directory>WebServerResources</directory>
</resource>
</resource>
</resources>
</build>
<...>
more details to come...