I am trying to deploy forecastrss-recommended proxy given in sample code, using maven script but I am getting error mentioned in question title. I just cloned GitHub repo and tried to run Maven script available in code.
https://github.com/apigee/apigee-deploy-maven-plugin/tree/master/samples
Solved! Go to Solution.
First thing I would do is go to jslint.com and validate your config.json file. Alternatively, you can use the sample below as a replacement and see if deployment succeeds (or fails with a different error - it may if you have dependent values being manipulated in the config process).
{ "configurations": [{ "name": "test", "policies": [], "proxies": [], "targets": [] }] }
This is a single profile, empty version of config.json.
Take a look at your config.json file. The deploy script is looking for entries that match the target "test" and finding none.
Hi David,
Means, Do I need to create that sampleproxy in Apigee Edge first (Using UI)? Then running script will modify that proxy with new configuration I do with XML?
Also, look into shared-pom.xml and pom.xml to match profiles the profile you're running. You can find shared profiles here and project specific shared pom here. Also, make you're providing the profile while calling mvn command.
For instance:
$ mvn install -P app-payment-api-test -username={your_email} -password={your_password}
Hi David and DZuluaga,
I tried and checked all of your suggestions but it did not help. Still I am facing same issue and all configurations looks good to me.
Is this issue still persist?You can try switching debug logging mode (by adding -X) in the mvn install command ,which gives you more details about the execution step wise.
First thing I would do is go to jslint.com and validate your config.json file. Alternatively, you can use the sample below as a replacement and see if deployment succeeds (or fails with a different error - it may if you have dependent values being manipulated in the config process).
{ "configurations": [{ "name": "test", "policies": [], "proxies": [], "targets": [] }] }
This is a single profile, empty version of config.json.
I'm having a similar problem via Jenkins and Maven on Windows, getting file not found, but maven works manually in another directory on the build server. Could it be the file path that Jenkins is using to run the mvn command is too long?
OK, fixed it, changed the Workspace and Build directories to be
d:\shortpath/${ITEM_FULL_NAME}/workspace
d:\shortpath/${ITEM_FULL_NAME}/builds
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |