@ssvaidyanathan - I am using Private Edge deployment and I am trying to setup the config-maven-plugin to deploy the configurations for apigee. I am using 1.5.5 - latest of edge supported version.
Following is the file structure I have, although its deploying the api specific kvms, its not recognizing the test env folder and nothing is happening.
"No target server config found." What am I missing ?
`mvn install -Ptest -Dapigee.config.options=update -Dapigee.config.dir=resources/edge `
My pom.xml has the right environment and profiles defined.
resources/
└── edge
├── api
│ └── api-template
│ ├── kvms.json
└── env
└── test
├── kvms.json
└── targetServers.json
[INFO] ----------------------------< api:proxies >-----------------------------
[INFO] Building api-template 1.0
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ proxies ---
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:specs (create-config-specs) @ proxies ---
************************************************************************
Apigee Specs
The APIs used in this goal are preliminary and subject to change without notice!!
************************************************************************
No API Specs found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:caches (create-config-cache) @ proxies ---
************************************************************************
Apigee Cache
************************************************************************
No cache config found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:keyvaluemaps (create-config-kvm) @ proxies ---
************************************************************************
Apigee KVM
************************************************************************
No org scoped KVM config found.
No env scoped KVM config found.
Retrieving API list from resources/edge/api
Retrieving config from api/api-template/kvms.json
Request prepared for the server
**************************
GET https://example.com/v1/organizations/org/apis/api-template/keyvaluemaps
accept: [application/json]
accept-encoding: [gzip]
authorization: [Basic [Not shown in log]
API KVM "api-template-kvm" exists. Updating.
Request prepared for the server
**************************
GET https://example.com/v1/organizations/org/
accept: [application/json]
accept-encoding: [gzip]
authorization: [Basic [Not shown in log]
Request prepared for the server
**************************
PUT https://example.com/v1/organizations/org/apis/api-template/keyvaluemaps/api-template-kvm
accept: [application/json]
accept-encoding: [gzip]
authorization: [Basic [Not shown in log]
Update Success.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:resourcefiles (create-config-resourcefiles) @ proxies ---
************************************************************************
Apigee Resource File
************************************************************************
No org scoped resourcefiles config found.
No env scoped resourcefiles config found.
Retrieving API list from resources/edge/api
No API scoped resourcefiles config found for api-template
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:keystores (create-config-keystores) @ proxies ---
************************************************************************
Apigee Keystore
************************************************************************
No Keystores config found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:aliases (create-config-aliases) @ proxies ---
************************************************************************
Apigee Alias
************************************************************************
No alias config found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:references (create-config-references) @ proxies ---
************************************************************************
Apigee Reference
************************************************************************
No References config found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:targetservers (create-config-targetserver) @ proxies ---
************************************************************************
Apigee Target Servers
************************************************************************
No target server config found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:apiproducts (create-config-apiproduct) @ proxies ---
************************************************************************
Apigee API Product
************************************************************************
No API Products found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:developers (create-config-developer) @ proxies ---
************************************************************************
Apigee Developer
************************************************************************
No Developers found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:apps (create-config-app) @ proxies ---
************************************************************************
Apigee App
************************************************************************
No developers apps found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:companies (create-config-companies) @ proxies ---
************************************************************************
Apigee Company
************************************************************************
No Companies found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:companyapps (create-config-companyapp) @ proxies ---
************************************************************************
Apigee Company App
************************************************************************
No Company apps found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:reports (create-config-reports) @ proxies ---
************************************************************************
Apigee Custom Report
************************************************************************
No Custom Reports found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:flowhooks (create-config-flowhooks) @ proxies ---
************************************************************************
Apigee Flow Hook
************************************************************************
No flowhooks config found.
[INFO]
[INFO] --- apigee-config-maven-plugin:1.5.5:userroles (create-config-userroles) @ proxies ---
************************************************************************
Apigee User Roles
************************************************************************
No User Role config found.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.769 s
[INFO] Finished at: 2024-06-25T14:53:04+02:00
[INFO] ------------------------------------------------------------------------
Solved! Go to Solution.
This was an issue because of our environment configuration. In our org design, we have separate infrastructure for actual environments (test,dev) and used env's to segment different network level traffic. I realized the environment names are actually different and it started to work. Just did a quick hack before the mvn command runs, where I moved the resources/edge/env/test to resources/edge/env/$ENV and it started to recognize it and used profiles to connect to different environments.
This was an issue because of our environment configuration. In our org design, we have separate infrastructure for actual environments (test,dev) and used env's to segment different network level traffic. I realized the environment names are actually different and it started to work. Just did a quick hack before the mvn command runs, where I moved the resources/edge/env/test to resources/edge/env/$ENV and it started to recognize it and used profiles to connect to different environments.
Hi John,
I am facing similar issue with requirement to setup separate jobs for org and each env.
Could you please let me know where you updated resources/edge/env/test to /$ENV.
when man config is
-Dapigee.config.dir refers to “edge/env/dev”, I get “No Env scoped kvm config found “ message
-Dapigee.config.dir refers to”edge”, it deploys kvms for all scopes- org,env,api.
Appreciate your help.
Is your pom file referencing orgs/envs correctly?