Dashboard > Pulse v1.2 > ... > pulse Files > maven2.pp
  Pulse v1.2 Log In | Sign Up   View a printable version of the current page.  
  maven2.pp
Added by Jason Sankey, last edited by Jason Sankey on Sep 12, 2006  (view change)
Labels: 
(None)

Pulse Manual Index

Maven 2 Post-Processor

The maven 2 post-processor is used to extract useful information from the output of a Maven 2 build. Currently this post-processor searches for:

  • errors and warnings reported by maven itself, (e.g. [ERROR] BUILD FAILED)
  • errors and failures reported in JUnit test summaries, by using a JUnit summary post-processor

A maven 2 post-processor is applied by default when using a maven 2 command.

The maven 2 post-processor is a subclass of the post-processor group. All attributes and child elements valid for post-processor groups are thus also valid for maven 2 post-processors.

Attributes

Attribute Description Required? Default
name The name of this post-processor. Yes  
fail-on-error If true, fail the build if any error features are detected (even if the Maven 2 build succeeds). No false
fail-on-error If true, fail the build if any warning features are detected (even if the Maven 2 build succeeds). No false
leading-context Number of lines of context to capture before the line where a feature is found. No 1
trailing-context Number of lines of context to capture after the line where a feature is found. No 1

See also post-processor.

Child Elements

See post-processor.

Examples

Apply a maven 2 post-processor to an executable command (e.g. a script that calls maven 2):

<maven2.pp name="maven2.pp"/>

<recipe name="default">
    <executable name="build" exe="build-it.sh">
        <process processor="${maven2.pp}"/>
    </executable>
</recipe>

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