0

Is it possible to get pants to pull in dependencies from your local maven repo?

I have searched and looked into the pants build system (new to me), and have had no luck anyone?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
user1555190
  • 2,803
  • 8
  • 47
  • 80

1 Answers1

1

If you use ivy, configure the ivy setting per ivysettings.xml: add local maven path then have Pants pick up the ivy setting.

[resolve.ivy]
ivy_settings: /path/to/ivysettings.xml

If you use coursier,

[coursier]
repos: [
    <other remote repos>,
    # local maven repo
    'file://%(homedir)s/.m2/repository',
  ]
yi cheng
  • 193
  • 10
  • yes we do have an ivy settings file. Would this also work for remote repos? – user1555190 Oct 21 '18 at 10:48
  • > Would this also work for remote repos? If you configure both local and remote in ivy settings, then ivy will look in both places in some order. – yi cheng Oct 22 '18 at 18:02