Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Apigee deploy maven plugin - Separate build and deploy process

I am using apigee deploy maven plugin for the deployments (which is working fine) but now trying to separate build and deploy phase but facing issues.

I am able to successfully create the package using below command (parameter buildNumber is added to create unique package name for every build)

mvn package -DbuildNumber={buildNumber}

Eg. Package Name created is "abc1.0-1-test.zip" wherein 1 is buildNumber

Now I want to deploy the already created package. I am using below command and getting below error :

Command : mvn deploy -Ptest -Dusername={username} -Dpassword={pwd} -Dorg=xyz

Error :

=============Importing App================




[INFO]




Request prepared for the server
 **************************
POST  https://api.enterprise.apigee.com/v1/organizations/xyz/apis?action=imp
ort&name=abc
accept: application/json
accept-encoding: gzip
authorization: Basic [Not shown in log]
content-type: application/octet-stream
 [Request body contains data, not shown]


[ERROR] 400 Bad Request
{
  "code" : "repository.cassandra.UnableToReadApiProxy",
  "message" : "Unable to read/find APIProxy contents",
  "contexts" : [ ]
}
[ERROR]

Please help.

0 8 1,124
8 REPLIES 8