Maven

Use the Maven bundled plugin to execute Maven goals.

Prerequisites

Before you can use this plugin in chains, install Maven on an agent and add it as a capability. For details, see Add capabilities to agents.

Back to top

Configure Maven plugin

When you add the Maven plugin to a chain, specify the plugin configuration details.

To configure the Maven step:

  1. Add the Maven step to a chain, as described in Create chains.

  2. Enter the plugin configuration details:

    Field Description
    Title Enter a name for the plugin step or accept the default name.
    Execution goals Specify the goals to be executed, for example, clean install.
    Working directory (Optional) Enter the path where to run the build, relative to the stream’s root.
    Maven executable location (Optional) Enter the path to mvn or mvn.bat. To use the location defined in your path, or system search path, leave this field empty.
    Use advanced options (optional)
    Maven JVM options

    Enter additional Maven JVM options (MAVEN_OPTS), for example:

    -Xdiag -XshowSettings:all

    Environment variables

    Specify environment properties to use with this chain. Enter each variable on a separate line in the format KEY=VALUE, for example:

    JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:52515,suspend=y,server=n

    JAVA_HOME=/usr/user1/java_1.8

Back to top

See also: