appassembler-maven-plugin is also worth looking at. (Ron your blog is currently inaccessible from here (France) , sounds like dns problem).
On Tue, Mar 10, 2015 at 3:54 PM, Jörg Schaible <[email protected] > wrote: > 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: [email protected] > For additional commands, e-mail: [email protected] > > -- Adrien Rivard
