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

Check for whitespace on fixVersionIds and statusIds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9
    • 2.11
    • jira
    • None
    • Patch

    Description

      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:

      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)
      ...
      

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

      <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>
      
      

      I possible solution could be to trim the whitespace.

      Attachments

        1. MCHANGES-307.patch
          1.0 kB
          Tobias Rübner

        Activity

          People

            mfriedenhagen Mirko Friedenhagen
            tobr Tobias Rübner
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: