Apigee Proxy Dependency Maven Plugin - Jenkins Error

[INFO] --- proxy-dependency-maven-plugin:2.0.0:resolve (default) @ oAuth ---

[WARNING] ./apiproxy/proxies does not exists

[WARNING] ../commonProxyCode/apiproxy/proxies does not exists

[WARNING] ./apiproxy/policies does not exists

[WARNING] ../commonProxyCode/apiproxy/policies does not exists

mvn -f src/gateway/{proxyName}/pom.xml install -Pdev -Dapigee.org=XXX -Dapigee.hosturl=XXX -Dapigee.env=dev -Dapigee.username=XXXX -Dapigee.password=XXXX

Jenkins job tries to execute maven from git root directory, where proxy dependency plugin tries to look for apiproxy in git root directory instead of proxy directory & causes above issue. Any when seen anything like above while using jenkins ?

Solved Solved
0 1 692
1 ACCEPTED SOLUTION

Make sure you specify below configration in pom.xml relative to git root directory,

 <proxySrcDir>.</proxySrcDir>
 <proxyDestDir>./target</proxyDestDir>

Also, make sure targets folder is present with some default target endpoint.

View solution in original post

1 REPLY 1

Make sure you specify below configration in pom.xml relative to git root directory,

 <proxySrcDir>.</proxySrcDir>
 <proxyDestDir>./target</proxyDestDir>

Also, make sure targets folder is present with some default target endpoint.