I use swagger to generate web services clients on my project. The generated code produce a library that can be use as a Maven lib. I already successfully deploy release version into my private sonatype-nexus.
I wonder what is the difference between altDeploymentRepository
and altReleaseDeploymentRepository
? How mvn deploy
select which repository to use if the two parameters are set?
As the apache-maven deploy documentation said :
altDeploymentRepository: Specifies an alternative repository to which the project artifacts should be deployed ( other than those specified in ). Format: id::layout::url
altReleaseDeploymentRepository: The alternative repository to use when the project has a final version.
altSnapshotDeploymentRepository: The alternative repository to use when the project has a snapshot version.
What exactly does
when the project has a final version.
mean?