Skip to content

Commit

Permalink
Show dependency information on build
Browse files Browse the repository at this point in the history
Automatically create dependency lists, helps to debug issues with third party libraries
  • Loading branch information
hakan42 authored Nov 26, 2024
1 parent cdf575f commit e6e98c0
Showing 1 changed file with 61 additions and 1 deletion.
62 changes: 61 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<maven.compiler.source>22</maven.compiler.source>
<maven.compiler.target>22</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<exec-maven-plugin.version>3.5.0</exec-maven-plugin.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -79,4 +80,63 @@
</repository>
</repositories>

</project>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin.version</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-help-plugin</artifactId>
<executions>
<execution>
<id>effective-pom</id>
<phase>initialize</phase>
<goals>
<goal>effective-pom</goal>
</goals>
<configuration>
<verbose>true</verbose>
<output>${project.build.directory}/effective-pom.xml</output>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>dependency-list</id>
<phase>initialize</phase>
<goals>
<goal>list</goal>
</goals>
<configuration>
<sort>true</sort>
<outputFile>${project.build.directory}/dependencies-list.txt</outputFile>
</configuration>
</execution>
<execution>
<id>dependency-tree</id>
<phase>initialize</phase>
<goals>
<goal>tree</goal>
</goals>
<configuration>
<outputFile>${project.build.directory}/dependencies-tree.txt</outputFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit e6e98c0

Please sign in to comment.