Child pages
  • Maven Kicking the tyres without changing your project structure
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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...

  • No labels