The maven POM contains various <id> elements.
I always thought that these have to be unique within the pom.
However, I now learned that the <id> of repositories is just an identifier, that uniquely references or links to an according <server> item from the settings.xml.
Hence, we can simplify by using only a single ID for both SNAPSHOTs and releases called deploy. This will avoid duplicated/redundant <server> configs in settings.xml what is a nice improvement.
The maven POM contains various
<id>
elements. I always thought that these have to be unique within the pom. However, I now learned that the<id>
of repositories is just an identifier, that uniquely references or links to an according<server>
item from thesettings.xml
. Hence, we can simplify by using only a single ID for both SNAPSHOTs and releases calleddeploy
. This will avoid duplicated/redundant<server>
configs insettings.xml
what is a nice improvement.