Maven Artifact

A Maven artifact is a reference to a Maven artifact stored in a Maven repository.

These artifacts are generally consumed by stages that deploy application artifacts, such as a Deploy stage.

The files stored in a Maven repository are typically called “artifacts”, so on this page, “Maven artifact” may refer to a Spinnaker artifact of type maven/file or to a file (e.g. a JAR file) stored in a Maven repository.

Maven artifact in the UI

The pipeline UI exposes the following fields for the Maven artifact:

FieldExplanation
AccountA Maven artifact account.
Maven CoordinateThe Maven coordinates for the artifact (in the standard Maven form groupId:artifactId:version).

In a trigger

When configuring certain triggers (such as an Artifactory trigger), you can use a Maven artifact as an expected artifact.

Configuring Maven artifact fields in a pipeline trigger’s expected artifact settings.

Configuring Maven artifact fields in a pipeline trigger’s expected artifact settings.

In a pipeline stage

When configuring a Deploy stage, you can use a Maven artifact as an application artifact. You can either use a previously-defined artifact (for example, an artifact defined in a trigger) or define an artifact inline.

Configuring a Deploy stage to use a Maven artifact as an application artifact.

Configuring a Deploy stage to use a Maven artifact as an application artifact.

Maven artifact in a pipeline definition

The following are the fields that make up a Maven artifact:

FieldExplanation
typeAlways maven/file.
referenceThe Maven coordinates for the Maven artifact, in the standard Maven form groupId:artifactId:version.

The following is an example JSON representation of a Maven artifact, as it would appear in a pipeline definition:

  1. {
  2. "reference": "io.pivotal.spinnaker:multifoundationmetrics:.*",
  3. "type": "maven/file"
  4. }

Last modified July 1, 2021: docs(fix): fix internal links (#98) (d74c3a4)