Hi there, I've written a mojo that analyses the current project's dependencies against those that are declared in the pom. It uses ASM to determine the actual class dependencies from the project's compiled classes and test classes, and then compares these against the classes held within the project's artifact jars. This produces the following information:
* Used declared dependencies * Used undeclared dependencies * Unused dependencies The question is where it should live? Initial suggestions would be either maven-dependency-plugin, maven-help-plugin or a new maven/mojo plugin. It currently just outputs this information to the log, but future extensions could include: - Create a report of the dependency analysis - Rewrite the POM to add used undeclared dependencies - Rewrite the POM to remove unused dependencies - Integration to highlight used undeclared and unused dependencies with: - maven-project-info-reports-plugin dependency report - maven-project-info-reports-plugin dependency graph - m2eclipse POM editor (unused dependencies -> warning annotations on <dependency> blocks, etc.) I can supply a corresponding initial patch if someone could suggest where it should reside. Cheers, Mark --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]