I am trying to deploy a sample proxy using Apigee Maven Deployment Plugin in OPDK Version 4.15.07.00
I have kept the config.json configurations blank since i am working on just a POC :
{ "configurations":[ { "name":"dev" }, { "name":"prod" } ] }
With this i am getting following error :
[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building DevOps-POC-v1 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:copy-resources (default) @ DevOps-POC-v1 - -- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- apigee-edge-maven-plugin:1.0.2:configure (configure-bundle) @ DevOps- POC-v1 --- [INFO] ============= Reading the config file located at ================ C:\Users\AF06447\Documents\DevOps_POC\DevOps-POC\src\gateway\DevOps_POC\config.j son [ERROR] =============No config tokens found for Environment dev, for proxy file name def ault.xml================ [ERROR] null [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.095 s [INFO] Finished at: 2016-07-13T11:23:25-04:00 [INFO] Final Memory: 9M/155M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-ma ven-plugin:1.0.2:configure (configure-bundle) on project DevOps-POC-v1: null: Mo joExecutionException -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE xception
Can you please let me know how to resolve this issue ?
Thanks,
Swapnil
Solved! Go to Solution.
You don't need it in that case. Remove the file and let me know if that worked. It expects the configurations in the config.json as the file exists.
Can you open an issue here and we will look into it.
But for your POC, just remove the config.json and use it only when you have configuration based deployments.
Hope that helps
@Anil Sagar, @Sai Saran Vaidyanathan, @sriki77
Can you please help ?
You don't need it in that case. Remove the file and let me know if that worked. It expects the configurations in the config.json as the file exists.
Can you open an issue here and we will look into it.
But for your POC, just remove the config.json and use it only when you have configuration based deployments.
Hope that helps
Thanks @Sai Saran Vaidyanathan. It worked without including config.json
Glad it worked...
@Swapnil Raverkar
I used following approach and it worked for me:
{ "configurations": [ { "name": "dev", "policies": [], "proxies": [], "targets": [] }, { "name": "qa", "policies": [], "proxies": [], "targets": [] } ] }
Thanks @Vipul Agarwal. It worked.
Thanks Vipul.
The reason I did not recommend this is - you could mess up things and could cause confusion. The config.json is not mandatory, use it when you really need it.
Hi Sai,
I am getting the following error, Please find attached details of error:
INFO] =============Replacing config tokens for Environment test, for proxy file name default.xml================
[INFO] ============= to apply the following config tokens ================ { "name": "default.xml", "tokens": [ { "xpath": "/ProxyEndpoint/HTTPProxyConnection/BasePath", "value": "/v1/weatherapi" } ] }
Regards,
Nagesherror.txt
Hi @nagesh
Welcome to the community !!
Can you please open this as a new question ? Also please let me know the steps you followed with the error logs. Please run the maven commend with a -X so that we have more debug logs on the output. What you can do is run the maven command with the -X option and pipe it to a txt file, some thing like this and attach the file as well
mvn install -Ptest -Dusername={apigee-edge-email} -Dpassword={apigee-edge-password} -Dorg={apigee-edge-org} -X > error.txt
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |