Following the help proviced to my previou question at location
Now I am trying to run the samples\EdgeConfig example.. Here I want the plugin to read the kvms.json file provided inside amples\EdgeConfig\resources\edge\env
I ran the below command
mvn install -Ptest -Dapigee.config.options=create -Dapigee.config.dir=resources/edge/env
and getting thee below error. Kindly assist. I want to run only for env; org not needed.
[INFO] Apigee KVM
[INFO] ************************************************************************
[INFO] Config file org\kvms.json not found.
[INFO] No org scoped KVM config found.
[INFO] Config file env\uat\kvms.json not found.
[INFO] No env scoped KVM config found.
[INFO] Retrieving API list from resources/edge/env\api
Solved! Go to Solution.
Thanks @SnehaNiyogi
Hope the https://api.enterprose.apigee.com is within <apigee.hosturl> tags. Its missing in your profile snippet above.
Just found the issue -
in your mvn command, pass -Dapigee.config.dir=resources/edge
I see you have passed -Dapigee.config.dir=resources/edge/env
If you dont want any org related config to be setup, please remove the files under org directory
Hi @SnehaNiyogi - Can you confirm you have kvms.json under resources/edge/env/uat directory ? The existing example will have the folder as test. You might have to rename that to uat in your case
No it was not there as I was trying to run the example. But I did create one after your reply under
apache-tomcat-7.0.81-windows-x64\apigee-config-maven-plugin-master\samples\EdgeConfig\resources\edge\env\uat
folder and ran the command again. Still the same error
Please confirm you have kvms.json under "uat" folder.
Also please share your kvms.json file and also paste the test profile from your pom file
Yes as mentioned previously kvms.json is present in env/uat folder
apache-tomcat-7.0.81-windows-x64\apigee-config-maven-plugin-master\samples\EdgeConfig\resources\edge\env\uat\kvms.json contents
[
{
"entry": [
{
"name": "COMPANY",
"value": "example.com"
},
{
"name": "PREFIX",
"value": "EXMPL"
}
],
"name": "backend_account_config_uat"
}
]
and my test profile is as follows.
Please note - Test profile is not an issue as this command is working if i dont specify the "dir" command option; it reads the main edge.json. Issue is when dir is specified.
<profile>
<id>test</id>
<properties>
<apigee.profile>test</apigee.profile>
<apigee.hosturl>https://api.enterprise.apigee.com</apigee.hosturl>
<apigee.apiversion>v1</apigee.apiversion>
<apigee.org>********</apigee.org>
<apigee.env>uat</apigee.env>
<apigee.username>********</apigee.username>
<apigee.password>*******</apigee.password>
</properties>
</profile>
Thanks @SnehaNiyogi
Hope the https://api.enterprose.apigee.com is within <apigee.hosturl> tags. Its missing in your profile snippet above.
Just found the issue -
in your mvn command, pass -Dapigee.config.dir=resources/edge
I see you have passed -Dapigee.config.dir=resources/edge/env
If you dont want any org related config to be setup, please remove the files under org directory
Deleting org helped. I had earlier with
-Dapigee.config.dir=resources/edge; but org folder deletion helped. Thank you again.
No problem ! 🙂
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |