Hi Dan, D C wrote:
> I was going to tag this onto my previous post, but I figured the issue is > unique enough to be a different topic. > > > When I run dependency:tree (with an empty .m2), I get a nice tree graph > showing 49 items. I would expect then my .m2/repository to have 49 items > in it. In actuality, my .m2 now has 251 artifacts. Well, yes. Maven and the plugins in use have also dependencies. > I want to collect only the artifacts that my application needs to run. > Would I be safe if I just package up the 49 items listed in the dependency > tree output? Use the dependency plugin to copy the dependencies. http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-project-dependencies.html > This would also be useful to reduce because I create my class path like > so: $ find ~/.m2/repository/ -name "*.jar" | xargs | sed 's/ /;/g' > > The more I can remove from there, the better. Leave the local repository alone. It is not of use for your task. Cheers, Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org