package sharedflow using maven

Hi Fellas,

I have been to successfully create api proxy zip bundle of api proxy , now I am trying to create just a zip bundle of shared flow. I have removed unit, integration test and other unnecessary task as the goal is just to have a zip bundle under the target folder.

I have added <apigee.apitype>sharedflow</apigee.apitype> in pom.xml as was suggested in some blog.

I am using maven package cmd for this as follows;
mvn -X -f pom.xml -P dev1 package

Did anybody else tried this?

Error returned is :

[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:2.1.0:configure
(configure-bundle-step) on project ak-shared-flow: null: MojoExecutionException

Here is how dev1 profile and folder structure looks like, the issue is package task fails and generated zip bundle is of 0 size :

 

<profiles>
  <profile>
    <id>dev1</id>
    <properties>
      <apigee.apitype>sharedflow</apigee.apitype>
      <apigee.apiversion>v1</apigee.apiversion>
      <apigee.profile>dev1</apigee.profile>
      <apigee.hosturl>https://apigee.googleapis.com</apigee.hosturl>
      <apigee.org>apgorgname</apigee.org>
      <apigee.env>dev1</apigee.env>
      <api.northbound.domain>apgdomainname</api.northbound.domain>
      <apigee.serviceaccount.file>./saacct.json</apigee.serviceaccount.file>
      <api.testtag>@errorHandling,@health,@wip,@mock,@cors</api.testtag>
      <apigee.options>override</apigee.options>
    </properties>
  </profile>
</profiles>

 

Screen Shot 2022-03-03 at 8.47.59 PM.png

Solved Solved
0 1 174
1 ACCEPTED SOLUTION

 I missed to update <include>apiproxy/**</include> under maven-resources-plugin which was causing build error. With following change I am able to create zip folder for sharedflow.

 
<includes>
<include>sharedflowbundle/**</include>
<includes>

View solution in original post

1 REPLY 1

 I missed to update <include>apiproxy/**</include> under maven-resources-plugin which was causing build error. With following change I am able to create zip folder for sharedflow.

 
<includes>
<include>sharedflowbundle/**</include>
<includes>