J Fabian Meier
J Fabian Meier

Reputation: 35785

Get class-level dependencies from inside Maven (jdeps)

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?

Upvotes: 1

Views: 353

Answers (1)

khmarbaise
khmarbaise

Reputation: 97359

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

Upvotes: 2

Related Questions