0

There is a transitive library that I need to use in my project, but it has transitive dependencies of several levels deep. I understand that by default all the required jar files will be automatically downloaded to the local repository, which is by default at USER_HOME/.m2 folder (my OS is Windows).

Is there a way to import all the required jar files into another specified folder? I'm planning to put all the jar files inside the 'project_name/libs' folder.

Basically, my question is quite similar to this one, but with transitive dependencies.

Community
  • 1
  • 1
Iwan Satria
  • 1,159
  • 1
  • 11
  • 20

1 Answers1

0

Putting libraries in the folder is possible and can be configured as in this tutorial. However if You use the local folder transitive dependencies will not be resolved - You need to put all the libraries in this folder if You'd like it to be the only repository for libraries. What You can do also is to exclude transitive dependencies as written here. The scenario is a bit unclear so I suppose that You probably need to use both approaches.

Opal
  • 70,085
  • 21
  • 151
  • 167