When I try to deploy a JHipster application via Maven deploy plugin to Nexus I get the following error.
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project profiletoolservice: Failed to deploy artifacts: Could not transfer artifact io.crowdcode.prf:profiletoolservice:war:1.0.0-20180209.081617-4 from/to repo.crowdcode.io (......repository/snapshots/): Failed to transfer file: ....../repository/snapshots/io/crowdcode/prf/profiletoolservice/1.0.0-SNAPSHOT/profiletoolservice-1.0.0-20180209.081617-4.war. Return code is: 400, ReasonPhrase: Detected content type [application/x-sh], but expected [application/java-archive, application/x-tika-java-web-archive]: ......../profiletoolservice/1.0.0-SNAPSHOT/profiletoolservice-1.0.0-20180209.081617-4.war.
When deploing to my Nexus running on local host everything works as expected.
The problem arises when I deploy to our proxy repository.
A hexdump from profiletoolservice-1.0.0-20180209.081617-4.war shows
00000000 23 21 2f 62 69 6e 2f 62 61 73 68 0a 23 0a 23 20 |#!/bin/bash.#.# |
00000010 20 20 20 2e 20 20 20 5f 5f 5f 5f 20 20 20 20 20 | . ____ |