Using hosted GitLab (14.4.0-pre)
We want to have the ‘Do not allow duplicates’ setting enabled (with an exception for *.-SNAPSHOT) to prevent overwriting of a release maven artifact.
When we add sources generation to our Maven build, it fails to push the sources jar to GitLab (error is 400).
So these files upload successfully:
forte-client/2.4/forte-client-2.4.pom
forte-client/2.4/forte-client-2.4.jar
forte-client/maven-metadata.xml
But this artifact fails:
forte-client/2.4/forte-client-2.4-sources.jar
This is clearly a different artifact, so I’m not understanding why GitLab rejects it.
If I change the Maven packages setting to allow duplicates, then it works. However, this sets us up for risk if a developer forgets to update the version in the pom.
Any guidance?