skhatri / grunt-nexus-deployer

Nexus Artifact deployer from grunt against snapshot and release repositories.
MIT License
13 stars 69 forks source link

Status code 400 with Nexus 3.16 #35

Open arjanvlek opened 5 years ago

arjanvlek commented 5 years ago

After update to Nexus 3.16, script fails with following error:

-------------------------------------------
>> Artifact Upload failed
>> Status code 400 for https://xxxxx.xxxx.xx/repository/maven-snapshots//com/xxxxx/xxxx/xxxxx/maven-metadata.xml
Warning: Task "nexusDeployer:test" failed. Use --force to continue.

This is due to NEXUS-16853

It works if the following lines 129-131 are deleted manually from the script

https://github.com/skhatri/grunt-nexus-deployer/blob/81f642dd3d31b2a904135909f3bd2f95f9530c77/tasks/lib/index.js#L129

davidkarlsen commented 5 years ago

Will this get some :heart:?

cah-jordan-smith03 commented 3 years ago

Alternatively, you can remove the version tag from the outer maven-metadata.xml. https://github.com/skhatri/grunt-nexus-deployer/pull/38