The dependency plugin works perfectly when doing policy resolution. However, despite trying and trying, I have not been able to get flow resolution to work.
I have been following the steps and using samples from:
https://github.com/apigee/proxy-dependency-maven-plugin
Are there any gotchas to defining flowfrag files or something else that might be missing from the available doc?
I have a common_ping_request_flow_steps.flowfrag file in my proxies directory with the following contents:
<Step>
<Name>JavaScript.SetPingVariables</Name>
</Step>
<Step>
<Name>RaiseFault.SetPingResponse</Name>
</Step>
And a monitoring.xml proxy endpoint definition on the same directory as follows:
<ProxyEndpoint name="monitoring">
<PreFlow>
<Request>
<Step>
<Name>JavaScript.GetClientIp</Name>
</Step>
</Request>
</PreFlow>
<Flows>
<Flow name="Ping">
<Condition>
(proxy.pathsuffix MatchesPath "/ping") and
(request.verb = "GET")
</Condition>
<Request>
#common_ping_request_flow_steps#
</Request>
</Flow>
</Flows>
<RouteRule name="default">
<TargetEndpoint>default</TargetEndpoint>
</RouteRule>
<HTTPProxyConnection>
<BasePath>/atytarget/probes</BasePath>
<VirtualHost>https_vhost</VirtualHost>
</HTTPProxyConnection>
</ProxyEndpoint>
The config in my pom for the plugin is:
<!-- dependency resolution -->
<plugin>
<groupId>io.apigee.build-tools.enterprise4g</groupId>
<artifactId>proxy-dependency-maven-plugin</artifactId>
<version>2.0.0</version>
<executions>
<execution>
<goals>
<goal>resolve</goal>
</goals>
<configuration>
<proxySrcDir>.</proxySrcDir>
<proxyDestDir>./target</proxyDestDir>
<proxyRefs>
<proxyRef>../CommonProxy</proxyRef>
</proxyRefs>
</configuration>
</execution>
</executions>
</plugin>
I have a Common proxy where I keep the policies used and those get successfully pulled. However, no flowfragment replacement happens.