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

Apigee deploy shared flows using maven plugin

Hi,

I want to deploy my proxies and sharedflows using the maven plugin. For the proxies it already works following the instructions on github (https://github.com/apigee/apigee-deploy-maven-plugin#step-1-create-a-maven-compatible-file-structure) and after recognizing that the maven plugin expects the zip file to be in the target folder (what is not mentioned there?)

However I did not manage to get my sharedflows uploaded yet. Is there also a folder structure required that differs from the one described in the link

https://github.com/apigee/apigee-deploy-maven-plugin#building-shared-flow-bundles

is also an additional target folder/ zipping required?

Thx in advance!

Solved Solved
0 7 2,743
1 ACCEPTED SOLUTION

HI @maria thanner

In your pom

<plugin>
    <groupId>io.apigee.build-tools.enterprise4g</groupId>
    <artifactId>apigee-edge-maven-plugin</artifactId>
    <version>1.1.6</version>
    <executions>
        <execution>
            <id>configure-bundle</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>

the configure goal within the execution will create the zip in the target folder and the deploy goal below will deploy it to Apigee. The same will work for shared flow. The only difference between proxy and sharedflow is that for a sharedflow, you need to provide the below property in the Maven profile you call through the maven command

<apigee.apitype>sharedflow</apigee.apitype>

View solution in original post

7 REPLIES 7