Skip to content

Commit e246fb3

Browse files
Added dependency-plugin to create a report about used/unused dependencies.
1 parent 1a6df47 commit e246fb3

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

pom.xml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<slf4j-simple.version>2.0.17</slf4j-simple.version>
2929
<apache-commons-collections4.version>4.4</apache-commons-collections4.version>
3030
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
31+
<maven-dependency-plugin.version>3.8.1</maven-dependency-plugin.version>
3132
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
3233
<maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version>
3334
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
@@ -74,8 +75,7 @@
7475
<groupId>org.apache.maven.plugins</groupId>
7576
<artifactId>maven-surefire-plugin</artifactId>
7677
<version>${maven-surefire-plugin.version}</version>
77-
<configuration>
78-
</configuration>
78+
<configuration />
7979
</plugin>
8080

8181
<plugin>
@@ -187,6 +187,25 @@
187187
</execution>
188188
</executions>
189189
</plugin>
190+
191+
192+
<plugin>
193+
<groupId>org.apache.maven.plugins</groupId>
194+
<artifactId>maven-dependency-plugin</artifactId>
195+
<version>${maven-dependency-plugin.version}</version>
196+
<executions>
197+
<execution>
198+
<id>analyze-report</id>
199+
<phase>package</phase>
200+
<goals>
201+
<goal>analyze-report</goal>
202+
</goals>
203+
<configuration>
204+
<outputDirectory>${project.build.directory}/dependency-report</outputDirectory>
205+
</configuration>
206+
</execution>
207+
</executions>
208+
</plugin>
190209
</plugins>
191210
<resources>
192211
<resource>
@@ -224,7 +243,7 @@
224243
<!-- Unit Testing -->
225244
<dependency>
226245
<groupId>org.junit.jupiter</groupId>
227-
<artifactId>junit-jupiter-engine</artifactId>
246+
<artifactId>junit-jupiter-api</artifactId>
228247
<version>${junit.version}</version>
229248
<scope>test</scope>
230249
</dependency>

0 commit comments

Comments
 (0)