Skip to content

Commit dc18113

Browse files
Added Dependency-check plugin to create a report about used/unused dependencies on built
1 parent f57a67a commit dc18113

1 file changed

Lines changed: 28 additions & 66 deletions

File tree

pom.xml

Lines changed: 28 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<locationtech-jts.version>1.20.0</locationtech-jts.version>
3232
<networknt-validator-version>1.5.6</networknt-validator-version>
3333
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
34+
<maven-dependency-plugin.version>3.8.1</maven-dependency-plugin.version>
3435
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
3536
<maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version>
3637
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
@@ -70,7 +71,6 @@
7071
<groupId>org.apache.maven.plugins</groupId>
7172
<artifactId>maven-resources-plugin</artifactId>
7273
<version>${maven-resources-plugin.version}</version>
73-
7474
<configuration>
7575
<encoding>UTF-8</encoding>
7676
</configuration>
@@ -117,7 +117,7 @@
117117
</execution>
118118
</executions>
119119
</plugin>
120-
<!--
120+
121121
<plugin>
122122
<artifactId>maven-deploy-plugin</artifactId>
123123
<version>${maven-deploy-plugin.version}</version>
@@ -131,7 +131,7 @@
131131
</execution>
132132
</executions>
133133
</plugin>
134-
-->
134+
135135
<plugin>
136136
<groupId>org.apache.maven.plugins</groupId>
137137
<artifactId>maven-gpg-plugin</artifactId>
@@ -159,27 +159,6 @@
159159
</configuration>
160160
</plugin>
161161

162-
<!--
163-
<plugin>
164-
<groupId>org.apache.maven.plugins</groupId>
165-
<artifactId>maven-release-plugin</artifactId>
166-
<version>${maven-release-plugin.version}</version>
167-
<configuration>
168-
<localCheckout>true</localCheckout>
169-
<pushChanges>false</pushChanges>
170-
<mavenExecutorId>forked-path</mavenExecutorId>
171-
<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
172-
</configuration>
173-
<dependencies>
174-
<dependency>
175-
<groupId>org.apache.maven.scm</groupId>
176-
<artifactId>maven-scm-provider-gitexe</artifactId>
177-
<version>1.9.4</version>
178-
</dependency>
179-
</dependencies>
180-
</plugin>
181-
-->
182-
183162
<plugin>
184163
<groupId>org.jacoco</groupId>
185164
<artifactId>jacoco-maven-plugin</artifactId>
@@ -191,6 +170,13 @@
191170
<goal>prepare-agent</goal>
192171
</goals>
193172
</execution>
173+
<execution>
174+
<id>report</id>
175+
<phase>prepare-package</phase>
176+
<goals>
177+
<goal>report</goal>
178+
</goals>
179+
</execution>
194180
</executions>
195181
</plugin>
196182

@@ -209,6 +195,23 @@
209195
</executions>
210196
</plugin>
211197

198+
<plugin>
199+
<groupId>org.apache.maven.plugins</groupId>
200+
<artifactId>maven-dependency-plugin</artifactId>
201+
<version>${maven-dependency-plugin.version}</version>
202+
<executions>
203+
<execution>
204+
<id>analyze-report</id>
205+
<phase>package</phase>
206+
<goals>
207+
<goal>analyze-report</goal>
208+
</goals>
209+
<configuration>
210+
<outputDirectory>${project.build.directory}/dependency-report</outputDirectory>
211+
</configuration>
212+
</execution>
213+
</executions>
214+
</plugin>
212215
</plugins>
213216
</build>
214217

@@ -234,47 +237,6 @@
234237
</dependency>
235238

236239
<!-- Dependencies for Geopoint/Geojson Fields -->
237-
<dependency>
238-
<groupId>org.geotools</groupId>
239-
<artifactId>gt-main</artifactId>
240-
<version>${geotools.version}</version>
241-
<exclusions>
242-
<exclusion>
243-
<groupId>org.eclipse.emf</groupId>
244-
<artifactId>org.eclipse.emf.common</artifactId>
245-
</exclusion>
246-
<exclusion>
247-
<groupId>org.geotools</groupId>
248-
<artifactId>gt-http</artifactId>
249-
</exclusion>
250-
</exclusions>
251-
</dependency>
252-
<dependency>
253-
<groupId>org.geotools</groupId>
254-
<artifactId>gt-api</artifactId>
255-
<version>${geotools.version}</version>
256-
<exclusions>
257-
<exclusion>
258-
<groupId>org.eclipse.emf</groupId>
259-
<artifactId>org.eclipse.emf.common</artifactId>
260-
</exclusion>
261-
</exclusions>
262-
</dependency>
263-
<dependency>
264-
<groupId>org.geotools</groupId>
265-
<artifactId>gt-metadata</artifactId>
266-
<version>${geotools.version}</version>
267-
<exclusions>
268-
<exclusion>
269-
<groupId>org.eclipse.emf</groupId>
270-
<artifactId>org.eclipse.emf.common</artifactId>
271-
</exclusion>
272-
<exclusion>
273-
<groupId>org.geotools.ogc</groupId>
274-
<artifactId>net.opengis.ows</artifactId>
275-
</exclusion>
276-
</exclusions>
277-
</dependency>
278240
<dependency>
279241
<groupId>org.geotools</groupId>
280242
<artifactId>gt-referencing</artifactId>
@@ -343,7 +305,7 @@
343305
<!-- Unit Testing -->
344306
<dependency>
345307
<groupId>org.junit.jupiter</groupId>
346-
<artifactId>junit-jupiter-engine</artifactId>
308+
<artifactId>junit-jupiter-api</artifactId>
347309
<version>${junit.version}</version>
348310
<scope>test</scope>
349311
</dependency>

0 commit comments

Comments
 (0)