saying "publish these properties in a bom?" is confusing: properties from the BOM are not published
the BOM is written using a property, for simplicity for example of defining a version that is used by many dependencies but that's to ease BOM writer maintenance: it does not publish anything to BOM consumer Regards, Hervé ----- Mail original ----- De: "Delany" <delany.middle...@gmail.com> À: "Maven Users List" <users@maven.apache.org> Envoyé: Vendredi 19 Août 2022 12:43:55 Objet: Re: Side effects of import scope? >> I don't see how any property from the imported model could affect the >> importing model >> > OK, good to know. It also can't be overwritten from the importing model, so what purpose does it serve to publish these properties in a bom? Regards, Delany On Thu, 18 Aug 2022 at 20:56, Laird Nelson <ljnel...@gmail.com> wrote: > On Wed, Aug 17, 2022 at 11:33 PM Herve Boutemy <hbout...@apache.org> > wrote: > > > I see one clarification to add to your "by value" explanation: what is > > imported is the dependencyManagement content from the *effective* > imported > > model, ie with its interpolation (properties substitution) already done > > > > That's helpful; thanks. > > > > I don't see how any property from the imported model could affect the > > importing model > > > > OK, good to know. > > > > A few reference to source code: > > - the importer: > > > > > https://maven.apache.org/ref/3.8.6/maven-model-builder/xref/org/apache/maven/model/composition/DefaultDependencyManagementImporter.html > > - and the effective model resolution that happens before: > > > > > https://maven.apache.org/ref/3.8.6/maven-model-builder/xref/org/apache/maven/model/building/DefaultModelBuilder.html#L1236 > > > > Hope this helps > > > > Very much, thanks. > > L > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org