Robert Scholte created MNG-8287:
-----------------------------------

             Summary: Dependencies should always use consumer pom
                 Key: MNG-8287
                 URL: https://issues.apache.org/jira/browse/MNG-8287
             Project: Maven
          Issue Type: Bug
    Affects Versions: 4.0.0-beta-4
            Reporter: Robert Scholte
         Attachments: build_or_consumer_pom.zip

TLDR: there's a different behavior between tools when consuming a dependency 
that was built with Maven4.

There should be no difference between tools when consuming dependencies. No 
matter the how an artifact was build: if you ask for the dependencies of 
artifact x, the answer should always be the same.
This means that this must always be based on the modelVersion 4.0.0. 

For parents I think this mechanism is already correct, because a model 4.0.0 
cannot inherit from model 4.10. Also, during builds if parents are coming from 
an artifact repo, it should use 4.1.0.

The other issue here is that a profile that is activated by packaging, that 
(inherited) profile should be copied to the consumer pom in case the packaging 
match (and this activation-part should be removed).




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to