0

I have the following within a project using Maven 3.2.2 on CentOS:

    <dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>common.maven</groupId>
            <artifactId>dm-bom</artifactId>
            <version>${bomVersion}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-bom</artifactId>
            <version>${vaadin.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

With the order given in the example, my dm-bom will be found correctly, but not the vaadin-bom. If I define the vaadin-bom first, then the problem is the other way around.

Does Maven have a problem with repository definition when a project defines more than one imported dependencyManagement pom?

logi-kal
  • 7,107
  • 6
  • 31
  • 43
hublo
  • 1,010
  • 2
  • 12
  • 33

1 Answers1

0

Problem was Maven 3.2.2 and having mulitple import of dependencyManagement into a pom.xml. After having upgraded to Maven 3.8.1, I don't see the issue anymore.

hublo
  • 1,010
  • 2
  • 12
  • 33