Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4763

SCM entry is determined wrongly when aggregating project is not a parent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.2.1
    • None
    • Plugin API
    • None
    • Windows XP

    Description

      Hello,
      I'm writing a plugin to check if SCM entry matches the real svn path. The scm entry is got from ${project.scm} parameter, to get a real path I'm incorporating svnKit library. If the aggregated project doesn't have its own scm tag, it iherites one from parent with appended artifact id. However, according with the project layout the scm should be got from the aggregator. The issue is presented on the following example

      aggregator pom:

      <project>    
          <artifactId>aggregator</artifactId>
          <scm><connection>scm:svn:http://host.com/svn/aggregator/trunk</connection></scm>
          <modules><module>child</module></modules>
      <project>
      

      parent pom:

      <project>
          <artifactId>parent</artifactId>
          <scm><connection>scm:svn:http://host.com/svn/parent/trunk</connection></scm>
      <project>
      

      child pom

      <project>
          <parent><artifactId>parent</artifactId></parent>
          <artifactId>child</artifactId>   
      <project>
      

      The scm entry connection (${project.scm}.connection) for child is scm:svn:http://host.com/svn/parent/trunk/child but shoud be scm:svn:http://host.com/svn/aggregator/trunk/child

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              logren Mateusz Prokopowicz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: