Maven2

Skip to end of metadata
Go to start of metadata
You are viewing documentation of TeamCity 5.x, which is not the most recent released version of TeamCity. Please refer to the listing to choose another version.
Search

Searching TeamCity 5.x Documentation

Table of Contents

This page contains reference information about the Maven2 Build Runner fields.

Note, that it is not recommended to run personal builds for Maven build configurations which deploy artifacts to remote repository. For the details, refer to Maven2_ page.

Maven Parameters

Option Description
Build runner Select Maven2 from the drop-down list.
Goals In the Goals field, specify the sequence of space-separated Maven goals that you want TeamCity to execute.
Some Maven goals can use version control systems, and, thus, they may become incompatible with some VCS checkout modes. If you want TeamCity to execute such goal:
  • Select "Automatically on agent" in the VCS checkout mode drop-down list on the Version Control Settings page. This makes the version control system available to a goal execution software.
Path to a POM file Specify path to the POM file relative to the build working directory.
By default, the property contains a pom.xml file. If you leave this field blank, the same value is put in this field. The path may also point to a subdirectory, and as such <subdirectory>/pom.xml is used.
Maven home path Use this optional parameter to specify path to the executable of your custom Maven.
You do not need to specify this parameter, if you are going to use the Maven executable that comes bundled with TeamCity (Maven 2.0.9).

Additional Maven command line parameters Specify the list of command line parameters.
The following parameters are ignored: -q, -f, -s (if User settings path is provided)

User settings path The path to an alternative user settings file. It is equivalent to Maven command line option -s or --settings.
JDK Home Path The path to JDK Home is read from the *JAVA_HOME* environment variable or *JDK home* specified on the build agent if you leave this field empty. If these two values are not specified as well, TeamCity uses the JDK home on which the build agent process is started.
Maven Metadata Select the check box to disable retrieving and synchronizing Maven-specific information for the current project.
JVM command line parameters Specify JVM command line parameters, for example, maximum heap size or parameters enabling remote debugging. These values are passed by the JVM used to run your build. For example:

Code Coverage

Since TeamCity 5.1 coverage support based on IDEA coverage engine is added to Maven runner. To learn about configuring code coverage options, please refer to the Java Code Coverage page.

Note: only Surefire version 2.4 and higher is supported.




See Also:

Labels:

build build Delete
runner runner Delete
maven2 maven2 Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.