You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2011/07/29 00:04:42 UTC
[jira] Commented: (MNG-5142) allow static URLSs which don't change
in derived submodules
[ https://jira.codehaus.org/browse/MNG-5142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274559#comment-274559 ]
Robert Scholte commented on MNG-5142:
-------------------------------------
{{static:}} sounds a bit confusing, because what would {{dynamic:}} mean?
I'd prefer the usage of {{relative:}} and {{absolute:}} where relative would be the default.
These are well-known terms and immediately clear for everyone.
> allow static URLSs which don't change in derived submodules
> -----------------------------------------------------------
>
> Key: MNG-5142
> URL: https://jira.codehaus.org/browse/MNG-5142
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Inheritance and Interpolation
> Affects Versions: 2.2.1, 3.0.3
> Reporter: Mark Struberg
>
> In sub-modules, URLs in the MavenModel will automatically get expanded by adding the artifactId of the very sub-module.
> This is fine for e.g. a SVN scm URL but breaks other SCMs like git or hg.
> Proposal:
> We should introduce a 'static:' prefix for URLs which must not get automatically expanded in submodules.
> An example:
> <scm>
> <developerConnection>static:scm:git:https://myserver.com/gitrepo/...
> The 'static:' info will get removed while parsing the pom.
> Compat notes:
> I've tried that such scm URLs with mvn-3.0.3 and mvn-2.2.1 in
> <scm><connection>, <developerConnection>, <url>, <distributionManagement><site><url>
> and got no error building my project. Of course, if you use the 'static:' prefix then you cannot release or do other site and scm tasks with an old maven version anymore. But that part is considered to be broken anyway at the moment ;)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira