mavenpants

Pants build files integrate with maven repo


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?


Solution

  • 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',
      ]