Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.6
-
None
-
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>