Skip to content

Commit 5a80f86

Browse files
committed
[feature] Add checks for unused and undeclared dependencies
1 parent 12a137e commit 5a80f86

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

pom.xml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,21 @@
334334
</resource>
335335
</resources>
336336
<plugins>
337+
<plugin>
338+
<groupId>org.apache.maven.plugins</groupId>
339+
<artifactId>maven-dependency-plugin</artifactId>
340+
<executions>
341+
<execution>
342+
<id>analyze</id>
343+
<goals>
344+
<goal>analyze-only</goal>
345+
</goals>
346+
<configuration>
347+
<failOnWarning>true</failOnWarning>
348+
</configuration>
349+
</execution>
350+
</executions>
351+
</plugin>
337352
<plugin>
338353
<groupId>org.apache.maven.plugins</groupId>
339354
<artifactId>maven-compiler-plugin</artifactId>
@@ -360,9 +375,14 @@
360375
<pluginManagement>
361376
<plugins>
362377
<plugin>
363-
<groupId>org.apache.felix</groupId>
364-
<artifactId>maven-bundle-plugin</artifactId>
365-
<version>2.0.1</version>
378+
<groupId>org.apache.maven.plugins</groupId>
379+
<artifactId>maven-dependency-plugin</artifactId>
380+
<version>3.9.0</version>
381+
</plugin>
382+
<plugin>
383+
<groupId>org.apache.felix</groupId>
384+
<artifactId>maven-bundle-plugin</artifactId>
385+
<version>2.0.1</version>
366386
</plugin>
367387
<plugin>
368388
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)