1

I have one maven dependency and which i mentioned in POM.xml of the project. The dependency jar dependent on few other jars. How can we make Maven download the chain of dependencies?

Where are Gradle downloads all the dependents for the jar.

Help will be greatly appriciated.

Thanks,

Pradeep

  • 1
    use *mvn clean install* to download dependencies. – soorapadman Jan 13 '16 at 12:20
  • Perhaps what you want to do is this: http://stackoverflow.com/questions/4955635/how-to-add-local-jar-files-in-maven-project – Yuri-M-Dias Jan 13 '16 at 12:23
  • Agree with Soora. If the dependency you put in the pom is available in maven central repository. It should be downloaded after you run " mvn install " – jiming Jan 29 '16 at 07:06

1 Answers1

1

In order to download the dependencies, you can execute

mvn dependency:copy-dependencies

After running it you will get all downloaded dependencies located under target/dependency folder

Ricard Nàcher Roig
  • 1,271
  • 12
  • 14
  • 1
    I don't think "copy-dependencies" will worked for this case, He just want to get the dependencies. not the copy Copy-dependencies : Goal that copies the project dependencies from the repository to a defined location – jiming Jan 29 '16 at 07:03