Maven ProjectΒΆ

The Maven Project module handles creating Maven Jenkins projects. To create a Maven project, specify maven in the project-type attribute to the Job definition.

It also requires a maven section in the Job definition. All of the fields below are required, except root-pom, whose default is pom.xml, and maven-name which will default to being unset. Not setting maven-name appears to use the first maven install defined in the global jenkins config.

Example:

job:
  name: doc_job
  project-type: maven

  maven:
    root-module:
      group-id: org.example.docs
      artifact-id: example-guide
    root-pom: doc/src/pom.xml
    goals: "clean generate-sources"
    maven-name: Maven3

Previous topic

Freestyle Project

Next topic

Matrix Project

This Page