Skip to content

Commit 4b22d25

Browse files
committed
[feature] Add checks for unused and undeclared dependencies
1 parent 2702dee commit 4b22d25

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@
114114
<build>
115115
<pluginManagement>
116116
<plugins>
117+
<plugin>
118+
<groupId>org.apache.maven.plugins</groupId>
119+
<artifactId>maven-dependency-plugin</artifactId>
120+
<version>3.9.0</version>
121+
</plugin>
117122
<plugin>
118123
<groupId>org.apache.maven.plugins</groupId>
119124
<artifactId>maven-compiler-plugin</artifactId>
@@ -182,6 +187,21 @@
182187
</pluginManagement>
183188

184189
<plugins>
190+
<plugin>
191+
<groupId>org.apache.maven.plugins</groupId>
192+
<artifactId>maven-dependency-plugin</artifactId>
193+
<executions>
194+
<execution>
195+
<id>analyze</id>
196+
<goals>
197+
<goal>analyze-only</goal>
198+
</goals>
199+
<configuration>
200+
<failOnWarning>true</failOnWarning>
201+
</configuration>
202+
</execution>
203+
</executions>
204+
</plugin>
185205
<plugin>
186206
<groupId>org.apache.maven.plugins</groupId>
187207
<artifactId>maven-release-plugin</artifactId>

0 commit comments

Comments
 (0)