You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tobias Rübner (JIRA)" <ji...@codehaus.org> on 2013/04/24 17:03:52 UTC

[jira] (MCHANGES-307) Check for whitespace on fixVersionIds and statusIds

Tobias Rübner created MCHANGES-307:
--------------------------------------

             Summary: Check for whitespace on fixVersionIds and statusIds
                 Key: MCHANGES-307
                 URL: https://jira.codehaus.org/browse/MCHANGES-307
             Project: Maven 2.x Changes Plugin
          Issue Type: Bug
          Components: jira
    Affects Versions: 2.9
            Reporter: Tobias Rübner


On the configuration of the maven changes plugin for the jira-report there are some configuration parameters that do not like whitespace.

I think this will include component, fixVersionIds, statusIds, resolutionIds, typeIds and priorityIds.

The report generation will fail with the follwing error:
{code}
org.apache.maven.plugin.MojoFailureException: Could not find status  Closed.
	at org.apache.maven.plugin.jira.RestJiraDownloader.resolveOneItem(RestJiraDownloader.java:268)
	at org.apache.maven.plugin.jira.RestJiraDownloader.resolveList(RestJiraDownloader.java:249)
	at org.apache.maven.plugin.jira.RestJiraDownloader.resolveIds(RestJiraDownloader.java:214)
	at org.apache.maven.plugin.jira.RestJiraDownloader.doExecute(RestJiraDownloader.java:129)
	at org.apache.maven.plugin.jira.AdaptiveJiraDownloader.doExecute(AdaptiveJiraDownloader.java:47)
	at org.apache.maven.plugin.jira.JiraMojo.executeReport(JiraMojo.java:367)
...
{code}

Note the leading whitespace that came through the definition in the pom file.

{code}
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-changes-plugin</artifactId>
  <configuration>
    <useJql>true</useJql>
    <jiraUser>${jira.user}</jiraUser>
    <jiraPassword>${jira.password}</jiraPassword>
    <onlyCurrentVersion>true</onlyCurrentVersion>
    <resolutionIds>Fixed</resolutionIds>
    <statusIds>Resolved, Closed</statusIds>
  </configuration>
  <reportSets>
    <reportSet>
      <reports>
        <report>jira-report</report>
      </reports>
    </reportSet>
  </reportSets>
</plugin>

{code}

I possible solution could be to trim the whitespace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira