deploying proxy to Apigee private cloud using apigee-deploy-maven-plugin returns 404 Not Found

I'm trying to deploy simple API proxy to Apigee private cloud, using apigee-deploy-maven-plugin and its returning 404 error, below is the error message

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

[INFO] Request prepared for the server **************************

POST http://{privatecloudHost}:{port}/v1/organizations/org/apis?action=import&name=payment-test&validate=...

accept: application/json

accept-encoding: gzip

authorization: Basic [Not shown in log]

content-type: application/octet-stream [Request body contains data, not shown]

[ERROR] 404 Not Found

we also a test Apigee cloud instance too, and we are able to deploy same api proxy to Apigee could with same maven-deploy plugin.

here is my pom.xml file

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>com.apigee.test</groupId>

<artifactId>payment-test</artifactId>

<version>1.0</version>

<name>payment-test</name>

<packaging>pom</packaging>

<properties>

<apigee.profile>test</apigee.profile>

<apigee.env>test</apigee.env>

<apigee.hosturl>http://{privatecloudUrl}:{port}</apigee.hosturl> <apigee.apiversion>v1</apigee.apiversion>

<apigee.org>org</apigee.org>

<apigee.username>{username}</apigee.username>

<apigee.password>{password}</apigee.password>

<apigee.options>validate</apigee.options>

</properties>

<build>

<plugins>

<plugin>

<artifactId>maven-clean-plugin</artifactId>

<version>3.1.0</version>

</plugin>

<plugin>

<artifactId>maven-resources-plugin</artifactId>

<version>3.1.0</version>

<executions>

<execution>

<id>copy-resources</id>

<phase>install</phase>

<goals>

<goal>copy-resources</goal>

</goals>

<configuration>

<outputDirectory>${project.basedir}/target/apiproxy</outputDirectory>

<resources>

<resource>

<directory>apiproxy</directory>

</resource>

</resources>

</configuration>

</execution>

</executions>

</plugin>

<plugin>

<groupId>io.apigee.build-tools.enterprise4g</groupId>

<artifactId>apigee-edge-maven-plugin</artifactId>

<version>1.1.7</version>

<executions>

<execution>

<id>configure-bundle</id>

<phase>install</phase>

<goals>

<goal>configure</goal>

</goals>

</execution>

<execution>

<id>deploy-bundle</id>

<phase>install</phase>

<goals>

<goal>deploy</goal>

</goals>

</execution>

</executions>

</plugin>

</plugins>

</build>

<pluginRepositories>

<pluginRepository>

<id>central</id>

<name>Maven Plugin Repository</name>

<url>http://repo1.maven.org/maven2</url>

<layout>default</layout>

<snapshots>

<enabled>false</enabled>

</snapshots>

<releases>

<updatePolicy>never</updatePolicy>

</releases>

</pluginRepository>

</pluginRepositories>

</project>

0 2 265
2 REPLIES 2

@Suresh Yarra, can you check if you are using the management server host and port(default is 8080) and not the virtual host and port in the URL

it worked, thanks for pointing.