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.
source
share