1. Atlassian
  2. Project: Atlassian
  3. jgit-flow

Wiki

Clone wiki

jgit-flow / goals

Goals Overview

Common Parameters

All of the goals some common configuration parameters defined in com.atlassian.maven.plugins.jgitflow.AbstractJGitFlowMojo. One complex parameter is flowInitContext. Because this is of a complex type, the automatic Maven documentation generation is not so helpful. This parameter permits you to configure branch and tag names, as shows in the following example:

    <configuration>
      <flowInitContext>
         <masterBranchName>frankenstein</masterBranchName>
         <developBranchName>development</developBranchName>
         <featureBranchPrefix>feature-</featureBranchPrefix>
         <releaseBranchPrefix>release-</releaseBranchPrefix>
         <hotfixBranchPrefix>hotfix-</hotfixBranchPrefix>
         <versionTagPrefix>blither-</versionTagPrefix>
       </flowInitContext>
     </configuration>

With this configuration, the 'master' branch is named 'frankenstein', the 'develop' branch is named 'development'. Feature branches are named 'feature-Whatever' instead of feature/whatever, release branches 'release-Version' instead of 'release/Version', and similarly for hotfixes. Version tags are named 'blither-Version' instead of 'Version'.

Username/Password configuration

For setting an explicit username/password configuration you can use the following snippet:

    <configuration>
      <username>MY_USER</username>
      <password>MY_PW</password>
    </configuration>

Updated