Hi Jens,

you are complaining about an essential feature of maven. Having maven automatically extend the urls, scm urls, site urls etc. with the list of parent artifact ids is crucial for multi-module projects. No-one would want to enter this information again and again through several levels of child modules which are hosted within a common directory tree. I agree that the docs are not clear about it, at least I couldn't find it documented. I see your point, and there are other problems, like when the directory name of a sub-module is not equal to the artifact id, but in general it is an important feature. How to disable - I don't know. Maybe you will need to file two things in JIRA: a documentation request and a feature request to disable it.

HTH,

Stefan

Jens Riboe wrote:
I have an organization POM, with common defs, including url templates for scm and distribution.

Here are the relevant snippets, from the parent pom
<scm>
<connection>scm:svn:https://www.myhost.com/svn/pub/${project.name}/trunk</connection> <developerConnection>scm:svn:https://www.myhost.com/svn/pub/${project.name}/trunk</developerConnection>
 <url>http://www.myhost.com/websvn/${project.name}/trunk</url>
</scm>
<site>
 <id>doc</id>
 <url>dav:http://dav.myhost.com:8000/doc/${project.name}/</url>
</site>

Here are the relevant snippets, from a test sub-pom
  <parent>
      ...
  </parent>
  <artifactId>hello</artifactId>
  <version>0.17</version>
  <packaging>jar</packaging>
  <name>HelloMvn</name>


The problem is that the URLs of the effective pom of the sub-project has the artifactId appended.
<scm>
<connection>scm:svn:https://www.myhost.com/svn/pub/HelloMvn/trunk/hello</connection> <developerConnection>scm:svn:https://www.myhost.com/svn/pub/HelloMvn/trunk/hello</developerConnection>
 <url>http://www.myhost.com/websvn/HelloMvn/trunk/hello</url>
</scm>
<site>
 <id>doc</id>
 <url>dav:http://dav.myhost.com:8000/doc/HelloMvn/hello</url>
</site>


So my question is: How can I disable this "feature", or configure the way it is working?


As it stands right now, I consider this "feature" to be a bug. It's not documented and I hardly see the benefit of it.


There was a mail trail touching this back in December, but it didn't come to a conclusion
http://www.mail-archive.com/[email protected]/msg77123.html

Regards,
  /jens


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

--
best regards,

Stefan Seidel
software developer
________________________
VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.    +49 (341) 9 60 50 07
fax.    +49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.    www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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

Reply via email to