Skip to content

jvm_artifact in a Scala project: how to set custom repository? #19378

Answered by mberndt123
mberndt123 asked this question in Q&A
Discussion options

You must be logged in to vote

OK, so the way to do this is:

  1. add our maven repo to pants.toml:
[coursier]
repos.add = [
  "https://nexus.mycompany.de/repository/maven-releases",
  "https://packages.confluent.io/maven/" #another repo we need
]
  1. add coursier credentials via a properties file (~/.config/coursier/credentials.properties).
mycompany.realm=Sonatype Nexus Repository Manager
mycompany.host=nexus.mycompany.de
mycompany.username=matthias.berndt
mycompany.password=xxxxxxxxxxxxxxxxx

Replies: 2 comments 2 replies

Comment options

benjyw
Jun 26, 2023
Maintainer Sponsor

You must be logged in to vote
1 reply
@benjyw
Comment options

benjyw Jun 26, 2023
Maintainer Sponsor

Comment options

You must be logged in to vote
1 reply
@benjyw
Comment options

benjyw Jun 27, 2023
Maintainer Sponsor

Answer selected by mberndt123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants