6.2. Building the Test Drive

The sample build requires Maven 2.0.9 or greater. Because the build compiles several seperate Flex and AIR projects, it can require setting the MAVEN_OPTS variable for your environment to allocate more memory than the default. The setting we find works well is:

MAVEN_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m"

		

Once your Maven environment is set up correctly, cd to {project distribution root}/spring-flex-samples/spring-flex-testdrive and execute:

mvn install

		

This will first build all of the individual Flex projects and then finally assemble the 'testdrive' WAR project.