I'm working on a Java library that is in a private company GitLab repo. It's part of an SDK to be used by customers. I'm trying to figure out how to publish this to Maven Central and I'm stuck on setting the SCM fields in pom.xml.
What do I set these fields to when the repository is not publicly available?
I need something like this:
<!-- Define where the source code for this project lives -->
<scm>
<connection>scm:git:https://github.com/evansiroky/maven-semantic-release-example.git</connection>
<developerConnection>scm:git:https://github.com/evansiroky/maven-semantic-release-example.git</developerConnection>
<url>https://github.com/evansiroky/maven-semantic-release-example</url>
</scm>
The SCM fields can point to a private repository and the URL can point to a website.
I ended up doing this:
<scm>
<connection>scm:git:https://private-repo.com/private-repo.git</connection>
<developerConnection>scm:git:https://private-repo.com/private-repo.git</developerConnection>
<url>https://docs.mywebsite.com</url>
</scm>