Maven2
The maven 2 command is used to execute version 2 of the Apache Maven
build tool. It provides a convenient way to execute maven 2, and applies a maven 2 post-processor by default.
The maven 2 command is based on the executable command, thus all attributes and child elements valid for the executable command are also valid for the maven 2 command.
Finding the maven 2 binary
The maven 2 command will try the following values for the maven 2 binary:
- if a binary is specified explictly using the exe attribute, that value will be used
- if a property named "maven2.bin" exists, the value of that property will be used
- otherwise, the value "mvn" will be used, or "mvn.bat" on Windows systems (and thus maven must be found in the PATH of the pulse process)
The "maven2.bin" property may be manually created via resource.
Attributes
| Attribute |
Description |
Required? |
Default |
| goals |
A space-separated list of goals to execute. |
No |
The default goal as specified in pom.xml. |
See also executable.
Child Elements
| Element |
Description |
Number |
| suppress-error |
Specifies an exclusion pattern for suppressing maven 2 errors that you do not want to be reported by pulse™. |
0 or more |
| suppress-warning |
Specifies an exclusion pattern for suppressing maven 2 warnings that you do not want to be reported by pulse™. |
0 or more |
See also executable.
Examples
Execute the "test" goal from the default build file:
Execute the "deploy" goal, ignoring unwanted warning messages: