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

wayne liu commented on MNG-2006:
--------------------------------

I think the assumption this fix is wrong. It is not necessary for a project to 
be a module of it's parent. I'm using the parent to inherit a number of common 
settings only, not to build the child projects. One setting I would like to be 
able to put into the parent is 
        <scm>
                
<connection>scm:svn:http://.../trunk/${project.artifactId}</connection>
                
<developerConnection>scm:svn:http://.../trunk/${project.artifactId}</developerConnection>
        </scm>
This would avoid having to specify scm information in the children even though 
they are not submodules.

Please reconsider a fix for this case.

Thanks,

Wayne Liu

> Module SCM URL is resolved as [...]/parent/module regardless of relativePath
> ----------------------------------------------------------------------------
>
>                 Key: MNG-2006
>                 URL: http://jira.codehaus.org/browse/MNG-2006
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0.2
>         Environment: Maven 2.0.2
> Continuum 1.0.2 with maven-scm-*-1.0-beta-3-20060115.041342-*.jar
>            Reporter: Yann Le Du
>            Assignee: John Casey
>            Priority: Blocker
>             Fix For: 2.0.3
>
>
> Quoting Emmanuel Venisse from user list :
> Ok, it's a bug in
> http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java?rev=306518&view=markup
> in assembleScmInheritance method.
> This method append parent scm connection url and artifactId without look at 
> relativePath. 
> For detailed description see 
> http://www.nabble.com/-m2-Multiprojects-and-inherited-SCM-URLs-t951105.html
> Project structure :
> PROJECT
> PROJECT/parent
> PROJECT/parent/pom.xml
> PROJECT/module
> PROJECT/module/pom.xml
> parent/pom.xml :
> <connection>scm:svn:svn://host/PROJECT/parent/</connection>
> <module>../module</module>
> module/pom.xml :
> <relativePath>../parent/pom.xml</relativePath> 
> When I add module in Continuum, its url is resolved as :
> scm:svn:svn://host/PROJECT/parent/module

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