Hi,

I do the following:

In my parent pom I define
  <scm>
    <connection>
        scm:svn:svn://server/repository/trunc/
    </connection>
    <developerConnection>
        scm:svn:svn://server/repository/trunc/
    </developerConnection>
  </scm>

and the child poms does NOT define the <scm> tag. The child poms 
inherite this property (if you have defined the <parent> tag in your 
child poms) and when generating a site the artifactId is automagically 
added to the URL. Like for child projects myChild1 and myChild2 the URL 
will be 

svn://server/repository/trunc/myChild1
and
svn://server/repository/trunc/myChild2


-Martin

>----Ursprungligt meddelande----
>Från: [EMAIL PROTECTED]
>Datum: 2006-10-25 11:47:08
>Till: <[email protected]>
>Ärende: [M2] properties from parent-pom expanded wrongly in child-pom
>
>
>Hi,
>
>i use a parent-pom from which my child-poms are derived.
>
>and i wonder if i can get rid of entries in my child poms, that only 
differ
>in the artifactId.
>
>
>for example, in my parent pom i use:
>
>  <url>http://192.168.22.5/projects/base-project/</url>
>
>  <scm>
>    <connection>scm:svn:https://myserver/svn/base-
project/trunk</connection>
>   
><developerConnection>scm:svn:https://myserver/svn/base-
project/trunk</developerConnection>
>    <url>https://myserver/wsvn/base-project/trunk</url>    
>  </scm>
>
>
>while in the child-pom, i use:
>
>  <url>http://192.168.22.5/projects/child-project/</url>
>
>  <scm>
>   
><connection>scm:svn:https://myserver/svn/child-
project/trunk</connection>
>   
><developerConnection>scm:svn:https://myserver/svn/child-
project/trunk</developerConnection>
>    <url>https://myserver/wsvn/child-project/trunk</url>    
>  </scm>
>
>
>
>so i tried to use the ${project.artifactId} property instead.
>
>  <url>http://192.168.22.5/projects/${project.artifactId}/</url>
>
>  <scm>
>   
><connection>scm:svn:https://myserver/svn/${project.artifactId}
/trunk</connection>
>     
><developerConnection>scm:svn:https://myserver/svn/${project.
artifactId}/trunk</developerConnection>
>    <url>https://myserver/wsvn/${project.artifactId}/trunk</url>    
>  </scm>
>
>
>when i use this proerties in the child-pom, everything works fine.
>
>but as soon as i use the same properties in the parent-pom, the 
following
>happens:
>
>  <url>http://192.168.22.5/projects/child-project/child-project</url>
>
>  <scm>
>   
><connection>scm:svn:https://myserver/svn/child-project/trunk/child-
project</connection>
>   
><developerConnection>scm:svn:https://myserver/svn/child-
project/trunk/child-project</develope
>rConnection>
>    <url>https://myserver/wsvn/child-project/trunk/child-
project</url>
>  </scm>
>
>
>it seems like properties in child-poms are expanded differently, than
>properties that are derived from a parent-pom.
>
>
>thx 4 any ideas
>R.C.
>
>-- 
>View this message in context: http://www.nabble.com/-M2--properties-
from-parent-pom-expanded-wrongly-in-child-pom-tf2506650.html#a6989102
>Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to