You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mike (JIRA)" <ji...@apache.org> on 2019/01/22 10:23:00 UTC

[jira] [Created] (MNG-6570) Root POM BOM import not recognized

Mike created MNG-6570:
-------------------------

             Summary: Root POM BOM import not recognized
                 Key: MNG-6570
                 URL: https://issues.apache.org/jira/browse/MNG-6570
             Project: Maven
          Issue Type: Bug
            Reporter: Mike


After upgrading to Maven 3.6.0 our build fails to run, because dependencies defined in the bom are not recognized. We have the following configuration:

{{<dependencyManagement>}}
{{    <dependencies>}}
{{        <dependency>}}
{{            <groupId>org.springframework.boot</groupId>}}
{{            <artifactId>spring-boot-dependencies</artifactId>}}
{{            <version>${spring-boot.version}</version>}}
{{            <type>pom</type>}}
{{            <scope>import</scope>}}
{{        </dependency>}}{{    }}

{{    </dependencies>}}

{{</dependencyManagement>}}

{{<dependencies>
    <!-- test dependencies -->
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter-engine</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.junit.vintage</groupId>
        <artifactId>junit-vintage-engine</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-junit-jupiter</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.assertj</groupId>
        <artifactId>assertj-core</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-test</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>}}

 

The console output gives errors on 'dependencies.dependency.version' of all dependencies.

Everything works well with Maven 3.5.4 and 3.3.9.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)