Hi all, I'm testing out the java support. Our org ...
# general
n
Hi all, I'm testing out the java support. Our org has artifacts stored in an artifactory instance - this is currently specified in maven - https://maven.apache.org/guides/mini/guide-multiple-repositories.html I gather the way to do this in pants is to use the
url
field on the jvm_artifact. But when I set this, it doesn't seem to do have any impact. I tried it in the example-jvm repo as well. I can try to debug this further, but wanted to check I'm on the right path here - does anyone have any experience with custom repositories?
1
e
You'll want to add this configuration to pants.toml: https://www.pantsbuild.org/docs/reference-coursier#section-repos
So:
Copy code
[coursier]
repos.add = ["<https://my/repo|https://my/repo>"]
Assuming you want to keep the defaults and add your artifactory to that default list of repos; otherwise drop the
.add
to fully replace the list.
n
Ah that sounds good, will try it out, thanks John!