maven plugin content length

Hi,

I am using mvn apigee-enterprise:deploy for deployment but I received an error as below. POST request maden by plugin as I know so how I can resolve this ?

Request prepared for the server 
 **************************
POST  https://host
accept: application/json
accept-encoding: gzip
authorization: Basic [Not shown in log]
content-type: application/octet-stream
 [Request body contains data, not shown] 

[ERROR] 411 Length Required
{"fault":{"faultstring":"Content-Length is missing","detail":{"errorcode":"messaging.adaptors.http.flow.LengthRequired"}}}
[ERROR] 
0 1 154
1 REPLY 1

Should I use mvn package ?