maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (SCM-570) SCM connection URL is inherited with artifactId added
Date Wed, 18 Aug 2010 08:49:32 GMT

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

Benjamin Bentmann closed SCM-570.
---------------------------------

    Resolution: Not A Bug
      Assignee: Benjamin Bentmann

> SCM connection URL is inherited with artifactId added
> -----------------------------------------------------
>
>                 Key: SCM-570
>                 URL: http://jira.codehaus.org/browse/SCM-570
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-plugin
>            Reporter: a
>            Assignee: Benjamin Bentmann
>
> Not sure if this is a bug or a feature (could not find documentation) and if it applies
to scm plugin or maven core.
> TC:
> 1. Make a parent pom:
> <scm>
>     <connection>${svn.repository}/trunk/${component.folder}</connection>
> </scm>
> <properties>
>     <svn.repository>scm:svn:svn://localhost/myRepo</svn.repository>
>     <component.folder>components/myParentPomComponent</component.folder>
> </properties>
> 2. Make child pom:
> <parent>
>     <artifactId>myParentPomComponent</artifactId>
> </parent>
> <properties>
>     <component.folder>components/myChildComponent</component.folder>
> </properties>
> 3. In folder with child component perform
> mvn help:effective-pom|grep svn
> Expected result:
> scm:svn:svn://localhost/myRepo/trunk/components/myChildComponent
> Actual result:
> scm:svn:svn://localhost/myRepo/trunk/components/myChildComponent/myChildComponent
> 4. Add to child pom:
> <scm>
>     <connection>${svn.repository}/trunk/${component.folder}</connection>
> </scm>
> 5. In folder with child component perform
> mvn help:effective-pom|grep svn
> Actual result:
> scm:svn:svn://localhost/myRepo/trunk/components/myChildComponent
> ----------------------
> So if <scm> is omited it is inherited with artifactId applied and that breaks the
schema when you specify folder with this component in a property.

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

        

Mime
View raw message