[ 
https://jira.codehaus.org/browse/MNG-5142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274621#comment-274621
 ] 

Robert Scholte commented on MNG-5142:
-------------------------------------

The {{absolute="true"}} assumes there are only two options: {{absolute}} and 
{{not absolute}}, which could be {{relative}}. There might be more complex 
transitions possible, like relative to the parents parent, although this will 
be a rare case.
Binding it to two states could bring us into trouble in the future.
I'd suggest to use an attribute like {{transition}} or {{location}} with at 
least support for {{relative}} and {{absolute}}.

> 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

        

Reply via email to