[ http://jira.codehaus.org/browse/MDEP-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129023#action_129023 ]
Benjamin Bentmann commented on MDEP-158: ---------------------------------------- bq. I guess it'd be nice to look for Java classes too as well. A class is just a resource, e.g. {{java.lang.String}} maps to {{/java/lang/String.class}} bq. mvn dependency:resource -Dresource=log4j.properties I would suggest to use a verb for the mojo name, maybe {noformat} mvn dependency:find -Dresource=log4j.properties {noformat} > find a resource on the classpath and show which jar it comes from and the > dependency path to it > ----------------------------------------------------------------------------------------------- > > Key: MDEP-158 > URL: http://jira.codehaus.org/browse/MDEP-158 > Project: Maven 2.x Dependency Plugin > Issue Type: Improvement > Reporter: james strachan > Assignee: Brian Fox > > I blogged about this here : > http://macstrac.blogspot.com/2008/03/lazyweb-maven-plugin-to-find-resources.html > Steve commented that <whichsource> the Ant task does a similar kinda thing. > So I'd like to be able to go to any maven projectl and type... > mvn dependency:resource -Dresource=log4j.properties > and it'd list the jars it finds the resource in along with the transitive > dependency path etc. > This would be amazingly useful for diagnosing which jars accidentally ship a > log4j.properties file - say -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira