Uploading nar (maven plugin) file error

I’m trying upload a .nar file to a nexus repository using curl. I get the following error when attempting to do so:

400 Detected content type [application/zip, application/x-zip-compressed], but expected [application/vnd.iptc.g2.newsmessage+xml, application/xml]

I don’t have issues uploading .jar files with the same method so I’m wondering if anyone has any experience with uploading .nar files.

You may need to turn off strict content type validation for the repository. The error message suggests content type detection is choosing the incorrect type.