Hi,
> In th edefault layout the artifactId matches. If this is not the case, the
> connection URL needs to be specified.
> It cannot be inherited and set with ${artifactId} as the expressions are
> evaluated inside the parent, not in the child.
this confuses me a bit: It looks to me like my URL in the parent POM:
<connection>scm:svn://svn.freehep.org/svn/freehep/${pom.artifactId}/trunk</connection>
is resolved in the child to:
svn://svn.freehep.org/svn/freehep/freehep-io/trunk/freehep-io
which reflects my {pom.artifactId} in the parent (just like in m1) and has the
appended
value (new in m2).
> Do you have an alternative proposition?
Well, what I would like to see is that if I have a flat SCM structure (in svn,
as
proposed by svn), like:
projectA/trunk
projectA/tags
projectA/branches
projectB/trunk
projectB/tags
projectB/branches
projectC/trunk
projectC/tags
projectC/branches
that I can still use a parent POM, declared in common/trunk or so, and that I
can
declare my scm-connection (and other URLs) only once in that parent POM.
For this to work, could we have some switch/tag in the POM to switch off the
default
"appending" behviour. Changing the current behaviour is of course backward
incompatible.
Regards
Mark Donszelmann
-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 08, 2005 11:06 AM
To: Maven Users List
Subject: Re: [m2] artifactId appended to scm-connection and url
This is by design.
In th edefault layout the artifactId matches. If this is not the case, the
connection URL needs to be specified. It cannot be inherited and set with
${artifactId} as the expressions are evaluated inside the parent, not in the
child.
Do you have an alternative proposition?
- Brett
On 10/7/05, Donszelmann, Mark <[EMAIL PROTECTED]> wrote:
> Hi
>
> my parent pom contains:
>
> <scm>
>
> <connection>scm:svn://svn.freehep.org/svn/freehep/${pom.artifactId}/trunk</connection>
>
> <developerConnection>scm:svn://svn.freehep.org/svn/freehep/${pom.artifactId}/trunk</developerConnection>
> </scm>
> <url>http://java.freehep.org/${pom.artifactId}/index.html</url>
>
> in the pom of the project it seems that both scm-connection and url
> have artifactId appended to them, resulting in (for freehep-io):
>
> svn://svn.freehep.org/svn/freehep/freehep-io/trunk/freehep-io
>
> and
>
> http://java.freehep.org/freehep-io/index.html/freehep-io
>
> I am afraid this happens to more that these two.
>
> Both cases are wrong for me, especially the scm-connection, since svn,
> for tagging purposses proposes a structure like:
>
> module/trunk
> module/tags
> module/branches
>
> so, is there any way to avaoid this "appending" of artifactId, except
> for redefining these two (and others) in each project pom file (which would
> defeat the purpose of a parent pom)?
>
> All in m2b3.
>
> Regards
> Mark Donszelmann
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]