proxy deployment is happening before target server creation

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>            


Solved Solved
0 2 137
1 ACCEPTED SOLUTION

The Target Server, KVMs, Caches should have phase=verify

Its shown that way in the sample, perhaps a copy paste oversite.

https://github.com/apigee/apigee-config-maven-plugin/blob/master/samples/APIandConfig/shared-pom.xml

View solution in original post

2 REPLIES 2

The Target Server, KVMs, Caches should have phase=verify

Its shown that way in the sample, perhaps a copy paste oversite.

https://github.com/apigee/apigee-config-maven-plugin/blob/master/samples/APIandConfig/shared-pom.xml

Thanks Kurt for quick help. I missed it while modifying the executions.