[ http://jira.codehaus.org/browse/MDEP-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129017#action_129017 ]
evenisse edited comment on MDEP-158 at 3/28/08 6:34 AM: ---------------------------------------------------------------- {noformat} for all jars in scope for all_jar_entries if resource == jar_entry_name print jar_name!#path_to_resource {noformat} Do you want to search the exact resource name or the resource in all packages? was (Author: evenisse): for all jars in scope for all_jar_entries if resource == jar_entry_name print jar_name!#path_to_resource Do you want to search the exact resource name or the resource in all packages? > 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