Build with Maven

QuickBuild is able to integrate with the popular build tool - Maven. A Maven build step can be added by selecting menu item Build -> Maven from the step menu.

Configure Maven command location

QuickBuild calls the command mvn to run Maven build. If this command is not in system path, you will need to specify its location in plugin setting of the Maven plugin through Plugin Management page.
Further more, ant command location can be specified on a per-node basis by following below steps:

  1. Open Maven plugin setting page and set the property Maven Executable Path as:
  2. For each node that does not have command mvn on system path, define the user attribute mvnPath to point to the actual ant command path, for example:

    In case of user agent node, the user attribute need to be defined in this way.

Please note that in above example, the mvnPath user attribute is just for demonstration purpose. You can use any other user attribute name.

Control build version

If you want to control the build version from QuickBuild side, please follow below steps:

  1. Change the POM file and define the project version as ${buildVersion}. Do not forget to commit the file into your SCM after change.
  2. Define a build property like below when define the Maven build step:


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