runMaven

Runs Maven operations on a Maven project folder. It is possible to configure the plugin to use external Maven installs and to setup environment variables for use be the plugin operation.

Environment/Instance Properties

Property Name

Property Code

Required

Description

Maven Home

FDMVN_MAVEN_HOME

No

If it is desired to use an external Maven, fill in the Maven Home up to but not including the bin folder here. Otherwise, the internal Maven 3.05 will be used.

(e.g. /opt/apache/maven/3.3.3)

The folder should have a bin folder inside it with the maven executable (mvn or mvn.cmd)

Maven Environment ScriptFDMVN_MAVEN_ENV_SCRIPTNo

If necessary, provide a script to source variables for use by the Maven Plugin.

This script can refer to other scripts,

(e.g. . /home/oracle/.bash_profile)

or if you don't have a script to run, you can export directly

(e.g. export MAVEN_HOME=/opt/apache/maven/3.3.3;export M2_HOME=/opt/apache/maven/home)

Project Properties

Property Name

Property Code

Required

Description





Inputs

Input Name

Input Code

Required

Description

Project Location

FDMVN_PROJECT_LOCATION

No


Path to the project which contains a POM file. If a relative path is given, a path inside FD_TEMP_DIR will be assumed.

In older versions of the plugin, it had been required. Please upgrade to the latest plugin version.

Run Phases

FDMVN_RUN_PHASES

Yes

Space-delimited Maven life cycle phases to execute (e.g. clean package).
For more information, see the Lifecycle Guide.

Arguments

FDMVN_ARGS

No

Space-delimited argument list (e.g. -B -fae).

Save ArtifactsFDMVN_INP_SAVE_ARTIFACTSNo

If checked, artifacts will be saved to the Artifacts folder automatically. Otherwise, you may want to place a saveArtifacts step after this.

All files present directly in the subfolder location are copied if checked.

Artifacts SubfolderFDMVN_INP_ARTIFACTS_SUBFOLDERNo

Subfolder inside the Project Location where artifacts are generated by Maven.

Defaults to "target"

If your artifacts need to come from another location, specify it instead.

 Outputs

Output Name

Required

Description




Artifacts

This operation produces artifacts if the FDMVN_INP_ARTIFACTS_SUBFOLDER option is checked. Otherwise you may wish to use the file plugin to move the correct files to the artifacts folder later in the workflow.

Endpoint Selection

This operation delegates endpoint selection to the workflow developer. The workflow editor will default the selection to "All", which selects all available endpoints associated to the environment instance.

Selecting a specific resource will result in selection of endpoints associated to the environment instance which have that resource defined.

Endpoint Execution

This operation delegates endpoint execution to the workflow developer. The workflow editor will default to "Any", which will execute on any one of the selected endpoints, which will be randomly picked from selected endpoints or a specific endpoint where previous step may have executed. Changing this value to "All" to will result in execution on all selected endpoints.

The following macros are not currently supported in the footer:
  • style