Kauri Documentation
 PreviousHomeNext 
21.5.2 JUnit "Module" TestsBook Index21.7 Release Building

21.6 Maven Dependency plugin

We included the Maven Dependency Plugin in Kauri, by adding the following in the parent pom.xml:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-dependency-plugin</artifactId>
  <version>2.0</version>
</plugin>

This makes it possible to do some analysis of all the dependencies - including the transitive dependencies - of each (sub)project. You can invoke any of the dependency-goals on the root level, or in a single (sub)project: mvn <goal>

The most interesting goals for this purpose are:

goal

description

dependency:analyze

Very useful ! Analyzes the dependencies of this project and determines which are: used and declared; used and undeclared; unused and declared.

dependency:tree

Very useful ! Displays the dependency tree for this project.

dependency:list

Displays the list of dependencies for this project.

Some other plugins do similar analysis, but they don't always seem as accurate as this dependency plugin.

Maybe we could use this plugin to generate the classloader.xml files we need in our modules. Maybe dependency:copy-dependencies can be of some help, or otherwise the dependency:list with post-processing ? TODO: Take a look at how they do it @Schaubroeck.

 PreviousHomeNext 
21.5.2 JUnit "Module" Tests21.7 Release Building