|
|
Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs
Page 5 of 5
<build>
Maven can send automated build notifications to a mailing list if you use a build tool plug-in that runs builds by itself:
<nagEmailAddress>turbine-torque-dev@jakarta.apache.org</nagEmailAddress>
This directory points to your source code so Maven can just compile the entire directory using the classpath it creates from the dependencies:
<sourceDirectory>src/java</sourceDirectory>
If you use JUnit for unit testing, Maven will compile your unit tests if they are located under this directory, which would be separate from your source directory:
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
Torque apparently doesn't use AspectJ, an aspect-oriented extension to Java that uses nonstandard Java source files that must be compiled with the AspectJ compiler. If you use AspectJ, specify your sources here:
<aspectSourceDirectory></aspectSourceDirectory>
If you use JUnit, you can specify the unit tests that Maven runs in the below unitTest XML element. The unitTest XML element's children are standard Ant include and exclude elements. Be sure to leave .java alone; Maven uses the source code files for the classes.
<unitTest >
<includes >
<include >**/*Test*.java </include >
</includes >
<excludes >
<exclude >**/BaseTestCase.java </exclude >
</excludes >
</unitTest >
Torque doesn't include any other jar files in its build process, so these elements are unused:
<resources > </resources >
<jars > </jars >
</build >
</project >
An open source project developed by a solid team, Maven is an impressive tool that will clear up some of your development headaches by smoothing out your build process, creating high-quality documentation for your project, and managing your test code. With the code quality and documentation tools built into Maven, you can better control large Java projects.
I recommend evaluating both Maven and Centipede to see if either can improve your development environment. Both tools are in beta form, so wait for their released versions to actually implement them.
I would like to thank Jason van Zyl for reviewing this article.