I am trying to set up CI/CD process for private cloud env.
Proxy Deployment is working fine. I am having issues with KVM deployment.
Getting following Error.
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------[INFO] Total time: 1.092s [INFO] Finished at: Fri Jan 18 15:20:50 GMT 2019 [INFO] Final Memory: 10M/247M [INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal com.apigee.edge.config:apigee-config-maven-plugin:1.2.2:keyvaluemaps (create-config-kvm) on project ConfigOnly: Execution create-config-kvm of goal com.apigee.edge.config:apigee-config-maven-plugin:1.2.2:keyvaluemaps failed: An API incompatibility was encountered while executing com.apigee.edge.config:apigee-config-maven-plugin:1.2.2:keyvaluemaps: java.lang.UnsupportedClassVersionError: com/auth0/jwt/exceptions/JWTDecodeException : Unsupported major.minor version 51.0 [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>com.apigee.edge.config:apigee-config-maven-plugin:1.2.2 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
Please find the attached pom.xml , sedge.txtpom.txtshared-pom.txthared-pom.xml and edge.json.
Extract from shared-pom.xml
<profiles> <profile> <id>test</id> <properties> <apigee.profile>test</apigee.profile> <apigee.hosturl>http://{ManagementServerHost}:{8080}</apigee.hosturl> <apigee.apiversion>v1</apigee.apiversion> <apigee.org>${org}</apigee.org> <apigee.env>${env}</apigee.env> <apigee.username>${username}</apigee.username> <apigee.password>${password}</apigee.password> </properties> </profile> </profiles>
It connects the apigee env fine using above details getting issues on deploying KVM.
Solved! Go to Solution.
This is due to incompatible Java runtime environment. Looks like you are using older version of Java that is running this maven command. Please update it to Java 8 or later. Check this. I added this to the plugin README too