0

Is it possible to change a pom file of a jar after uploading it to Maven Central?

E.g., if I've uploaded a jar with a set of dependencies, and after the upload found out one of the dependencies was wrong - can I change the pom and upload it, and still have the same version number?

My logic says the answer is no, but my boss insists the answer is yes, and this issue affects his decision not to rely on Maven central repository in our project's build.

Thanks in advance :)

  • If it is uploaded into staging repository you can't change the pom itself but you can drop the staging repository and try again. Furthermore – khmarbaise Apr 01 '15 at 09:23
  • Why are you relying on Maven Central? – khmarbaise Apr 01 '15 at 09:28
  • @khmarbaise currently we store our 3rd party dependencies in our SVN. I would like to use a more modern approach of gradle+artifactory, where artifactory downloads new dependecies from maven-central – Dina Farbman Apr 01 '15 at 09:44
  • Than configure Artifactory appropriately and this works also with Maven. No relationship to Gradle. Storing into SVN does not make sense. Neither with Maven nor with Gradle. – khmarbaise Apr 01 '15 at 10:27

0 Answers0