Uploaded image for project: 'Maven Changes Plugin'
  1. Maven Changes Plugin
  2. MCHANGES-274

Private Jira instances needs secure place to store Jira credentials (settings.xml) as oppose to pom.xml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.6
    • None
    • jira
    • None
    • all

    Description

      As per the changes plugin documentation, Jira Credentials can be configured in the plugin as jiraPassword and jiraUser. This credentials are expected to be stored in the plain text inside the pom.xml.

      I wish if these credentials are stored securely in the settings.xml similar to maven repository credentials or sonar server credentials.

      References:
      Plugin Documentation: http://maven.apache.org/plugins/maven-changes-plugin/jira-report-mojo.html#jiraPassword
      Sample code:

      	<plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-changes-plugin</artifactId>
              <version>2.6</version>
              <configuration>
                <jiraUser>jiraadmin</jiraUser>
                <jiraPassword>adminpwd</jiraPassword>
                <smtpHost>localhost</smtpHost>
                <smtpPort implementation="java.lang.Integer">25</smtpPort>
                <toAddresses>
                  <toAddress implementation="java.lang.String">${dev-email}</toAddress>
                </toAddresses>
              </configuration>
              <reportSets>
                <reportSet>
                  <reports>
                    <report>jira-report</report>
                    <report>changes-report</report>
                  </reports>
                </reportSet>
              </reportSets>
            </plugin>
      

      Maven Repository Credentials stored securely in settings.xml: http://maven.apache.org/settings.html#Servers
      Sonar plugin using credentials stored securely in settings.xml http://mojo.codehaus.org/sonar-maven-plugin/examples/use-enterprise-database.html

      Expected behavior:
      pom.xml

      	<plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-changes-plugin</artifactId>
              <version>2.6</version>
              <configuration>
                <!-- refer settings.xml for jira credentials -->
                <smtpHost>localhost</smtpHost>
                <smtpPort implementation="java.lang.Integer">25</smtpPort>
                <toAddresses>
                  <toAddress implementation="java.lang.String">${dev-email}</toAddress>
                </toAddresses>
              </configuration>
              <reportSets>
                <reportSet>
                  <reports>
                    <report>jira-report</report>
                    <report>changes-report</report>
                  </reports>
                </reportSet>
              </reportSets>
            </plugin>
      

      settings.xml

      <profiles>
        <profile>
            <id>jira</id>
            <properties>
                <jiraUser>jiraadmin</jiraUser>
                <jiraPassword>adminpwd</jiraPassword>
            </properties>
          </profile>
      </profiles>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            swapsapar cosmo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: