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>
Solved! Go to 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.
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.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |