[ 
http://jira.codehaus.org/browse/MCHANGES-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225301#action_225301
 ] 

Michael Wenig commented on MCHANGES-203:
----------------------------------------

We want to achieve that the several projects does not need to configure the 
changes plugin for themselves and provide a central configuration which is used 
when a changes.xml is present. That is working at the moment with the exception 
of the links to the issue system.

In our central pom:

<plugin>
  <maven-changes-plugin>
    <configuration>
      <issueLinkTemplatePerSystem>
        <jira>%URL%/%ISSUE%</jira>
        <bugzilla>%URL%/show_bug.cgi?id=%ISSUE%</bugzilla>
        <....>
      </issueLinkTemplatePerSystem>

in the project A pom:
<issueManagement>
  <type>jira</type>
  <url>...</url>
</issueManagement>
[no configuration of changes plugin]

in the project B pom:
<issueManagement>
  <type>bugzilla</type>
  <url>...</url>
</issueManagement>
[no configuration of changes plugin]

When generating the changes report the plugin should choose the template 
according to the issueManagement.type if it is not specified at the action. 
Currently it uses everytime the 'default' (as there is normally no system 
attribute at the actions) which leads either to nonsense urls or the need to 
configure the plugin in every project:

projectA:
<plugin>
  <maven-changes-plugin>
    <configuration>
      <issueLinkTemplate>%URL%/%ISSUE%</issueLinkTemplate>

projectB:
<plugin>
  <maven-changes-plugin>
    <configuration>
      <issueLinkTemplate>%URL%/show_bug.cgi?id=%ISSUE%</issueLinkTemplate>


I hope the pain is clear now :-)

> Use poms issueTracking.system to select the system to use
> ---------------------------------------------------------
>
>                 Key: MCHANGES-203
>                 URL: http://jira.codehaus.org/browse/MCHANGES-203
>             Project: Maven 2.x Changes Plugin
>          Issue Type: Improvement
>          Components: changes-report
>    Affects Versions: 2.3
>            Reporter: Michael Wenig
>
> We are defining the changes plugin in a corporate pom. We want to specify the 
> url-templates there via issueLinkTemplatePerSystem.
> Unfortunately for the selection of the system the poms issueTracking 
> information seems not to be used so every project has to define the plugin 
> and set the issueLinkTemplatePerSystem (or provide a system-attribut on every 
> action).
> Are there any reasons for not using poms project.issueTracking.system as 
> default?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to