Skip to content

Commit 29804eb

Browse files
author
Tom Gottfried
committed
Ensure clean and complete dependency declarations
1 parent 5ab2356 commit 29804eb

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
2222
restore-keys: ${{ runner.os }}-m2
2323
- name: Build with Maven
24-
run: mvn validate && mvn -B package --file pom.xml
24+
run: mvn -B verify package --file pom.xml

pom.xml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,25 @@
388388
<includeResources>false</includeResources>
389389
</configuration>
390390
</plugin>
391-
</plugins>
391+
<plugin>
392+
<groupId>org.apache.maven.plugins</groupId>
393+
<artifactId>maven-dependency-plugin</artifactId>
394+
<version>3.9.0</version>
395+
<executions>
396+
<execution>
397+
<id>analyze</id>
398+
<goals>
399+
<goal>analyze-only</goal>
400+
</goals>
401+
<configuration>
402+
<failOnWarning>true</failOnWarning>
403+
</configuration>
404+
</execution>
405+
</executions>
406+
<configuration>
407+
<ignoreUnusedRuntime>true</ignoreUnusedRuntime>
408+
</configuration>
409+
</plugin>
410+
</plugins>
392411
</build>
393412
</project>

0 commit comments

Comments
 (0)