You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Maarten Mulders (Jira)" <ji...@apache.org> on 2022/02/04 14:32:00 UTC

[jira] [Commented] (MNG-7344) Effective pom should contain more finegrained details regarding its path.

    [ https://issues.apache.org/jira/browse/MNG-7344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487101#comment-17487101 ] 

Maarten Mulders commented on MNG-7344:
--------------------------------------

Situation:

!MicrosoftTeams-image.png!

Thoughts so far

# We need a place in the Modello generated classes to keep track of "why we loaded this model". Let's call it "referencing model"; it's a variable of type {{InputLocation}}. *This requires a change in Modello*
# When we merge the model of an "intermediary" BOM ("bom-a" or "bom-b", respectively), we make a copy of the elements that we take from BOM C and overwrite in bom-a or bom-b, but we add the {{referencingModel}} (which is "bom-a" or "bom-b", respectively) to the copy. *This requires a change in our own "Model Merger" classes.*
# When we want to know the resolution path of a particular element in the effective model, we can follow back the {{referencingModel}} to find the path from "pom" to "bom-c", including the route that we took (either over "bom-a" or "bom-b").  *This requires a change in the Maven Help Plugin (MPH-183).*

> Effective pom should contain more finegrained details regarding its path.
> -------------------------------------------------------------------------
>
>                 Key: MNG-7344
>                 URL: https://issues.apache.org/jira/browse/MNG-7344
>             Project: Maven
>          Issue Type: Improvement
>          Components: Inheritance and Interpolation, POM
>            Reporter: Robert Scholte
>            Priority: Major
>         Attachments: MicrosoftTeams-image.png
>
>
> To support MPH-183 some changes needs to be done in Maven Core.
> For every element that is not part of the raw model, it must be possible to get the resolution path to that element. 
> The following are known to add elements to the effective pom without pure inheritance
> - BOMs
> - maven-tiles by [~talios]
> Without this feature, it is very hard to detect where elements are coming from.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)