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

How can I use proxy-dependency-maven-plugin to add code fragments to my API proxy?

Not applicable

I am developing several proxies for an API and I will want to use maven plugin to insert code fragments into my code for the common parts. I am using it for the default fault rule that is the same for all to avoid duplicating code but I cannot make it work. This is the code I am using: <DefaultFaultRule name="Store Locator - Default Always Runs">

#FragmentCode#

</DefaultFaultRule> Then I have a folder in the project with this FragmentCode.flowfrag file I also have policy files to be copied (and they are copied), but this FragmentCode is not inserted when uploaded into Apigee using maven deployment script. I have added the plugin to the pom.xml file too.

Can anyone throw some light on it?

0 2 1,406
2 REPLIES 2
Top Solution Authors