You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicky Sandhu <ni...@hotmail.com> on 2007/06/29 01:48:54 UTC
Maven SCM resolution problem when used with parent pom
Here's the problem
I have a parent pom defining the scm url
....
<properties>
<svn-repository>http://svn/repository</svn-repository>
....
<scm>
<connection>scm:svn:${svn-repository}/${artifactId}/trunk</connection>
<url>${svn-repository}/${artifactId}</url>
</scm>
This works fine for the parent pom project
Output on debug >>>>>>>>>>
Configuring mojo 'org.apache.maven.plugins:maven-scm-plugin:1.0:validate'
-->
[DEBUG] (f) basedir = c:\wk\raleys.maven\com.raleys.maven
[DEBUG] (f) connectionType = connection
[DEBUG] (s) connectionUrl =
scm:svn:http://svn/repository/com.raleys.maven/trunk
[DEBUG] (f) scmConnection =
scm:svn:http://svn/repository/com.raleys.maven/trunk
[DEBUG] (f) settings = org.apache.maven.settings.Settings@27982
<<<<<<<<<<<<<<
For the child project
There is no definition for scm and here is what i get
mvn -X scm:validate
Output >>>>>>>>>>>>>>>>>>>>
(f) basedir = c:\wk\raleys.maven\com.raleys.utils
[DEBUG] (f) connectionType = connection
[DEBUG] (s) connectionUrl =
scm:svn:http://svn/repository/com.raleys.utils/trunk/com.raleys.utils
[DEBUG] (f) developerConnectionUrl =
scm:svn:http://svn/repository/com.raleys.utils/trunk/com.raleys.utils
[DEBUG] (f) settings = org.apache.maven.settings.Settings@1d381d2
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
However if I put the definition cut and paste from the parent pom into the
child pom
<scm>
<connection>scm:svn:${svn-repository}/${artifactId}/trunk</connection>
<url>${svn-repository}/${artifactId}</url>
</scm>
mvn -X scm:validate gives this output
>>>>>>>>>>>>>>>>>>
[DEBUG] (f) basedir = c:\wk\raleys.maven\com.raleys.maven
[DEBUG] (f) connectionType = connection
[DEBUG] (s) connectionUrl =
scm:svn:http://svn/repository/com.raleys.maven/trunk
[DEBUG] (f) scmConnection =
scm:svn:http://svn/repository/com.raleys.maven/trunk
[DEBUG] (f) settings = org.apache.maven.settings.Settings@27982
<<<<<<<<<<<
Is this a bug or am I missing something
--
View this message in context: http://www.nabble.com/Maven-SCM-resolution-problem-when-used-with-parent-pom-tf3997423s177.html#a11352893
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven SCM resolution problem when used with parent pom
Posted by "Siegmann Daniel, NY" <Da...@fja-us.com>.
Looks like bug MNG-3075 [1]. I'd suggest you at least vote for that
issue, and maybe add a comment showing your problem (it has been
identified in other URLs, but not SCM connection).
Hopefully this will get fixed in 2.0.8.
[1] http://jira.codehaus.org/browse/MNG-3075
--
Daniel Siegmann
FJA-US, Inc.
512 Seventh Ave., New York, NY 10018
(212) 840-2618 ext. 139
-----Original Message-----
From: Nicky Sandhu [mailto:nickysandhu@hotmail.com]
Sent: Friday, June 29, 2007 11:51 AM
To: users@maven.apache.org
Subject: Maven SCM resolution problem when used with parent pom
Here's the problem
I have a parent pom defining the scm url
....
<properties>
<svn-repository>http://svn/repository</svn-repository>
....
<scm>
<connection>scm:svn:${svn-repository}/${artifactId}/trunk</connection>
<url>${svn-repository}/${artifactId}</url>
</scm>
This works fine for the parent pom project Output on debug >>>>>>>>>>
Configuring mojo
'org.apache.maven.plugins:maven-scm-plugin:1.0:validate'
-->
[DEBUG] (f) basedir = c:\wk\raleys.maven\com.raleys.maven
[DEBUG] (f) connectionType = connection
[DEBUG] (s) connectionUrl =
scm:svn:http://svn/repository/com.raleys.maven/trunk
[DEBUG] (f) scmConnection =
scm:svn:http://svn/repository/com.raleys.maven/trunk
[DEBUG] (f) settings = org.apache.maven.settings.Settings@27982
<<<<<<<<<<<<<<
For the child project
There is no definition for scm and here is what i get mvn -X
scm:validate Output >>>>>>>>>>>>>>>>>>>>
(f) basedir = c:\wk\raleys.maven\com.raleys.utils
[DEBUG] (f) connectionType = connection
[DEBUG] (s) connectionUrl =
scm:svn:http://svn/repository/com.raleys.utils/trunk/com.raleys.utils
[DEBUG] (f) developerConnectionUrl =
scm:svn:http://svn/repository/com.raleys.utils/trunk/com.raleys.utils
[DEBUG] (f) settings = org.apache.maven.settings.Settings@1d381d2
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
However if I put the definition cut and paste from the parent pom into
the child pom
<scm>
<connection>scm:svn:${svn-repository}/${artifactId}/trunk</connection>
<url>${svn-repository}/${artifactId}</url>
</scm>
mvn -X scm:validate gives this output
>>>>>>>>>>>>>>>>>>
[DEBUG] (f) basedir = c:\wk\raleys.maven\com.raleys.utils
[DEBUG] (f) connectionType = connection
[DEBUG] (s) connectionUrl =
scm:svn:http://svn/repository/com.raleys.utils/trunk
[DEBUG] (f) scmConnection =
scm:svn:http://svn/repository/com.raleys.utils/trunk
[DEBUG] (f) settings = org.apache.maven.settings.Settings@778255
<<<<<<<<<<<
Is this a bug or am I missing something
--
View this message in context:
http://www.nabble.com/Maven-SCM-resolution-problem-when-used-with-parent
-pom-tf3997423s177.html#a11352893
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org