Maven repository, disallow redeployment of released version

Hey,

“It’s a fundamental tenet of Maven that release artifacts never change once they are released . This is enforced in Maven by the fact that once a release artifact or POM is located in the local repository, Maven will never check for an updated artifact in a remote repository. Once an artifact is released, it is considered a static, unchanging artifact.” [1]

Can I disallow the redeployment of an artifact to the gitlab package registry, if it already exists?

Kind regards

Martin

1 Like