You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/08/13 11:15:32 UTC

[jira] Closed: (MNG-4763) SCM entry is determined wrongly when aggregating project is not a parent

     [ http://jira.codehaus.org/browse/MNG-4763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4763.
----------------------------------

    Resolution: Not A Bug
      Assignee: Benjamin Bentmann

The SCM URL is derived/inherited from the parent and its {{<modules>}} section, i.e. the assumption is that the parent is also the aggregator. If one employs a different project structure, users are expected to explicitly specify the proper URLs in the children.

> SCM entry is determined wrongly when aggregating project is not a parent
> ------------------------------------------------------------------------
>
>                 Key: MNG-4763
>                 URL: http://jira.codehaus.org/browse/MNG-4763
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 2.2.1
>         Environment: Windows XP
>            Reporter: Mateusz Prokopowicz
>            Assignee: Benjamin Bentmann
>
> 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:
> {code:xml}
> <project>    
>     <artifactId>aggregator</artifactId>
>     <scm><connection>scm:svn:http://host.com/svn/aggregator/trunk</connection></scm>
>     <modules><module>child</module></modules>
> <project>
> {code}
> parent pom:
> {code:xml}
> <project>
>     <artifactId>parent</artifactId>
>     <scm><connection>scm:svn:http://host.com/svn/parent/trunk</connection></scm>
> <project>
> {code}
> child pom
> {code:xml}
> <project>
>     <parent><artifactId>parent</artifactId></parent>
>     <artifactId>child</artifactId>   
> <project>
> {code}
> 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

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