You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hervé Boutemy (JIRA)" <ji...@apache.org> on 2015/08/17 21:09:46 UTC

[jira] [Closed] (MNG-5871) make url inheritance algorithm more visible

     [ https://issues.apache.org/jira/browse/MNG-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hervé Boutemy closed MNG-5871.
------------------------------
       Resolution: Fixed
    Fix Version/s: 3.3.7

merged in master in [200d2f99|http://git-wip-us.apache.org/repos/asf/maven/commit/200d2f99]

> make url inheritance algorithm more visible
> -------------------------------------------
>
>                 Key: MNG-5871
>                 URL: https://issues.apache.org/jira/browse/MNG-5871
>             Project: Maven
>          Issue Type: Improvement
>          Components: Inheritance and Interpolation
>    Affects Versions: 3.3.3
>            Reporter: Hervé Boutemy
>            Assignee: Hervé Boutemy
>             Fix For: 3.3.7
>
>
> currently, default urls calculated for child from parent values are often discussed
> but their implementation is no easy to find: it's a mix between
> - DefaultInheritanceAssembler.getChildPathAdjustment(, which calculates path adjustment
> - MavenModelBuilder.appendPath, that calculates the child url: in general, parent url is used, but if childpathadjustment is set, this is the algorithm to extrapolate child from parent
> IMHO, the test on childpathadjustement is a hack; in fact, we should use method overriding: default method just returns arent, but DefaultInheritanceAssembler.InheritanceModelMerger should override it with the extrapolation algorithm
> this would make the code a lot more clear and help for future enhancements



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)