Dashboard > Pulse v1.2 > ... > recipe > maven2
  Pulse v1.2 Log In | Sign Up   View a printable version of the current page.  
  maven2
Added by Jason Sankey, last edited by Jason Sankey on Mar 07, 2007  (view change)
Labels: 
(None)

Pulse Manual Index

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:

<maven2 name="build" goals="test"/>

Execute the "deploy" goal, ignoring unwanted warning messages:

<maven2 name="deploy" goals="deploy">
    <suppress-warning expression=".*Removing: jar from forked lifecycle.*"/>
</maven2>
suppress-error (Pulse v1.2)
suppress-warning (Pulse v1.2)

Zutubi wiki is Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.10 Build:#528 Nov 29, 2006) - Bug/feature request - Contact Administrators