Is there a way to download dependencies from a pom.xml file to a specified folder in java? I’m able to run maven command from java and I got download messages, but I don’t know where maven stores these libraries? How can I download these dependencies to a specific folder?
Share
Take a look at maven’s dependency plugin, specifically the
copy-dependenciesgoal. The usage section describes how to do exactly what you want.To do it from the command line just do:
Add this to exclude the transitive or inner dependencies:
-DexcludeTransitive=true