Skip to content
David Grierson edited this page Sep 23, 2020 · 2 revisions

The username and password used to authenticate with Jira can be explicitly specified within the plugin goal configuration using the <jiraUsername> and <jiraPassword> configuration parameters.

The recommended way to perform this configuration is with the <settingsKey> configuration described below.

<settingsKey> Configuration

The authentication configuration can be controlled using Maven's standard <servers> configuration by specifying the <settingsKey> configuration parameter to identify which <server> section of your settings.xml to be used to define the username and password.

For example - if you specify:

<configuration>
  <settingsKey>Jira Server</settingsKey>
</configuration>

This will look for the a <server> entry with the same name - something like:

<servers>
  <server>
    <id>Jira Server</id>
    <username>bob</username>
    <password>...</password>
  </server>
  <!-- ... etc ... -->
</servers>

If the password in the <server> section uses Maven's standard encryption mechanism this will be automatically decrypted for authentication to Jira.