RiotGames/nexus_cli — pull request #51 by KAllan357 (2012-11-07 22:23:39+00:00)
Title: Use PUT for pushing artifacts

We used to POST data to Nexus. A Sonatype representative suggested that a large file upload through POST might not be a happy-path for HTTP.

The only reason I went with POST was because it auto generated the pom file and enabled you to use "LATEST" when querying for an artifact.

* Change POST to a PUT.
* Generate and PUT a fake pom.xml file with the artifact.
* DELETE the metadata for the groupId/artifactId of the artifact - this causes Nexus to regenerate the metadata.xml for a given artifact namespace and enables LATEST to work appropriately.