The uploaded jar is being detected as a shell script. Is this a spring boot jar by any chance? If so, this is a known issue. Disable file content validation in the hosted repository in order to work around it.
rseddon
(Rich Seddon)
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Uploading nar (maven plugin) file error | 5 | 619 | February 10, 2026 | |
| The requested URL returned error 400 when uploading .mar file - org.sonatype.nexus.repository.InvalidContentException: Content type could not be determined | 1 | 272 | July 31, 2024 | |
| Problems uploading files .pom to nexus | 4 | 225 | December 1, 2025 | |
| Default Mime Type changed and I can't figure out how to fix it | 18 | 7901 | November 1, 2019 | |
| Log of warning about content type | 0 | 1099 | July 1, 2022 |