Submodule Dependency Graph

I need to create a dependency graph for my java application, but only for submodules, not for plugins.

Example in pom.xml

 <modules>
        <module>module1/pom1.xml</module>
        <module>module2/pom2.xml/module>
 </modules>

I tried depgraph with graphviz, but it generates plugin dependencies, not submodules, any idea?

Thanks in advance.

+3
source share
2 answers

Finally, I found a solution using the depgraph module, it was applied by the filter in its configuration as follows:

         <plugin>
            <groupId>ch.elca.el4j.maven.plugins</groupId>
            <artifactId>maven-depgraph-plugin</artifactId>
            <version>3.0</version>
            <configuration>           
                 <groupFilter>com.stackoverflow.*</groupFilter>                            
            </configuration>
         </plugin>

this will draw all the dependencies starting with "com.stackoverflow", in my case they are submodules.

Hope this helps.

+2
source
+1

All Articles