I tried using sample from apigee deploy plugin & config plugin but proxy deployment happening first before it creates target server.
I want to create target server,kvm and deploy proxy and at the end create product , but it fails in deployment.
Here is the pom snippet:
<plugin>
<groupId>io.apigee.build-tools.enterprise4g</groupId>
<artifactId>apigee-edge-maven-plugin</artifactId>
<version>1.1.7</version>
<executions>
<execution>
<id>configure-bundle-step</id>
<phase>package</phase>
<goals>
<goal>configure</goal>
</goals>
</execution>
<execution>
<id>deploy-bundle</id>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.apigee.edge.config</groupId>
<artifactId>apigee-config-maven-plugin</artifactId>
<version>1.2.2</version>
<executions>
<execution>
<id>create-config-targetserver</id>
<phase>install</phase>
<goals>
<goal>targetservers</goal>
</goals>
</execution>
<execution>
<id>create-config-apiproduct</id>
<phase>install</phase>
<goals>
<goal>apiproducts</goal>
</goals>
</execution>
</executions>
</plugin>