<Comment on #19378 jvm_artifact in a Scala project...
# github-notifications
c
Comment on #19378 jvm_artifact in a Scala project: how to set custom repository? Discussion answered by mberndt123 OK, so the way to do this is: 1. add our maven repo to pants.toml:
Copy code
[coursier]
repos.add = [
  "<https://nexus.mycompany.de/repository/maven-releases>",
  "<https://packages.confluent.io/maven/>" #another repo we need
]
3. add coursier credentials via a properties file (
~/.config/coursier/credentials.properties
). This is almost the same
Copy code
mycompany.realm=Sonatype Nexus Repository Manager
mycompany.host=<http://nexus.mycompany.de|nexus.mycompany.de>
mycompany.username=matthias.berndt
mycompany.password=xxxxxxxxxxxxxxxxx
pantsbuild/pants