Get class-level dependencies from inside Maven (jdeps)

324 views Asked by At

Applying jdeps -v to a jar lists all the class level dependencies of that jar, i.e. which of your classes uses which other class.

I would like to extract the same information during the build. Therefore, I would like to write or configure a Maven plugin that goes through all the *.class files generated by the build and outputs the used classes.

How can I achieve this?

1

There are 1 answers

0
khmarbaise On

I would suggest to take a deeper look into the maven-jdeps-plugin which uses jdeps tool under the hood.

If you have any ideas for improvements don't hesitate to create a JIRA issue for it