Skip to content

BOMs should be locked #1483

@maximeq95

Description

@maximeq95

In the holy quest of the hermetic/offline build started with :

Those dependencies are typically in a <parent> pom under the dependencyManagement, they have type<type>pom</type> and scope <scope>import</scope> :

 <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.somegroup</groupId>
        <artifactId>someartefact</artifactId>
        <version>1.0.0</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
  </dependencies>
</dependencyManagement>

Even though a child project does not use the dependency, maven will check if the BOMs are present in the .m2 directory (mvn package -o -nsu -Dmaven.repo.local=.m2) and currenty, it fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions