You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David Turanski (JIRA)" <ji...@codehaus.org> on 2008/11/17 18:59:41 UTC

[jira] Commented: (MNG-1031) SCM connection attribute being inherited incorrectly

    [ http://jira.codehaus.org/browse/MNG-1031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=154490#action_154490 ] 

David Turanski commented on MNG-1031:
-------------------------------------

This really should be fixed. 

Fundamentally I should expect any property set in a parent POM to be inherited without modification. 

In this case, my client is using svn. The directory structures are:

<artifact_id>
     trunk
     branches
     tags


Appending the artifact id breaks this and is a design flaw.  Brett's work-around will work. But I can think of no rationale for not fixing this.

> SCM connection attribute being inherited incorrectly
> ----------------------------------------------------
>
>                 Key: MNG-1031
>                 URL: http://jira.codehaus.org/browse/MNG-1031
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0-beta-2
>            Reporter: Matthew Beermann
>
> (Not sure of the correct component, but taking a stab at it...)
> It appears that the <connection> attribute of <scm> is being modified as it is inherited, but not correctly. For example, if my parent project had something like:
> <scm>
>     <connection>scm:cvs:pserver:anonymous@server:/projects:</connection>
> </scm>
> ...then the final value of the attribute, as seen by the children and any plugins, ends up looking something like:
>     scm:cvs:pserver:anonymous@server:/projects:/my-artifact-id
> ...which is wrong. It appended the artifact id automagically, which is good, but it added a leading slash that CVS doesn't like at all. It does work in Subversion I suspect. Anyway, I'm not sure where the appending happens, so reassign as needed...

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