Skip to content

mpobjects/dependency-lock-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Maven Central Sonatype Nexus (Snapshots) License

dependency-lock-plugin

Maven Plugin which produces a POM where all dependencies have been locked down via <dependencyManagement> entries. The output POM is the original POM with additional entries to the <dependencyManagement>. This mostly affects cases of version ranges, especially in transtivie dependencies. It was inspired by the BOM builder plugin.

Usage

<project>
  [...]
  <build>
    <plugins>
      <plugin>
      	<groupId>com.mpobjects.maven</groupId>
        <artifactId>dependency-lock-plugin</artifactId>
        <version>${dependency-lock-plugin.version}</version>
        <executions>
          <execution>
            <id>lock-dependencies</id>
            <goals>
              <goal>lock</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  [...]
</project>

More information is available in the plugin documentation.