Overview
Maven 2 projects are used to build software with the Apache Maven
build tool, version 2.
Configuration
working directory
If you wish to execute maven from a specific directory, provide the path of the directory, relative to the base directory for the recipe. Usually this option is not required, as maven build files can use paths relative to the location of the build file itself.
This setting is not required. By default, maven will be executed in the base directory for the build.
goals
A space-separated list of maven goals to execute.
This setting is not required. If not specified, maven will execute the default goal as specified in the pom.xml.
arguments
A space-separated list of additional command line arguments to pass to maven. You may use this option to pass arbitrary arguments to the maven binary.
This setting is not required.
Locating Maven 2
Maven 2 projects make use of the maven 2 command, and thus the maven binary is located as described in the documentation for that command. In addition, a maven 2 project will import a resource named "maven2" if it exists. This facility may be used in conjunction with the maven 2 command's use of the property "maven2.bin" to control the maven binary used.