Created
August 22, 2018 10:57
-
-
Save mrbald/71c58feb5032d089f8f9b6cb8ce8a66d to your computer and use it in GitHub Desktop.
Strict Dependencies Check with Maven
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project ...> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<version>...</version> | |
<executions> | |
<execution> | |
<id>analyze</id> | |
<goals> | |
<goal>analyze-only</goal> | |
</goals> | |
<configuration> | |
<failOnWarning>true</failOnWarning> | |
<usedDependencies> | |
<!-- mark dependency as used --> | |
<dependency>ch.qos.logback:logback-classic</dependency> | |
</usedDependencies> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment