Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove version tag from outer maven-metadata.xml #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cah-jordan-smith03
Copy link

Background

In Sonatype Nexus Repository OSS 2.29.2-02, I started receiving 400 bad request errors when uploading an artifact using this grunt plugin. Unfortunately, I do not track updates to the Sonatype instance and the artifact had not been built for several months so I cannot pinpoint the first version of Sonatype in which the issue began to occur in.

Changes and rationale

Upon further inspection, the curl command to upload the outer maven-metadata.xml file was the culprit. Removing the version tag in the outer maven-metadata.xml template resolves the 400 error. On comparison with another artifact uploaded using the standard Gradle publish plugin, there is no version tag nested below the metadata tag in the file it generates either.

I only tested uploading to Sonatype Nexus 2.29.2-02 so there is a slim possibility that uploading to older versions or a different hosting repository could break with this change.

…st errors when uploading to Sonatype 2.29.2+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant