Pavel_K created MNG-8432:
----------------------------

             Summary: Add possibility to use BOM properties in child pom.xml
                 Key: MNG-8432
                 URL: https://issues.apache.org/jira/browse/MNG-8432
             Project: Maven
          Issue Type: New Feature
    Affects Versions: 3.9.10
            Reporter: Pavel_K


Currently, it is not possible to get BOM properties in child project. For 
example, if in child project you do:

{code:java}
           <dependency>
                <groupId>com.company.bom</groupId>
                <artifactId>bom</artifactId>
                <version>1.0.0</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
{code}

then you can't not use bom properties (dependency versions) in this child 
project. 

For example, if you want to use maven-dependency-plugin then you need to add 
all dependency versions manually because otherwise you will get 
maven-dependency-plugin:3.8.1:copy failed: version can neither be null, empty 
nor blank.

This problem was also discussed on 
[StackOverflow|https://stackoverflow.com/questions/45963173/import-maven-property-used-in-bill-of-materials-bom
 ]  with 10K views  

That's why I suggest to add possibility to use BOM properties in child pom.xml



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

Reply via email to