Failed to execute goal com.sap.cloud.yaas.service-sdk:service-sdk-generator-maven-plugin:4.3.4:generate-service (default) on project
OpeningEventDemo: Execution default of goal com.sap.cloud.yaas.service-sdk:service-sdk-generator-maven-plugin:4.3.4:generate-service failed:
Unable to load the mojo 'generate-service' in the plugin 'com.sap.cloud.yaas.service-sdk:service-sdk-generator-maven-plugin:4.3.4' due to an
API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException:
com/sap/cloud/yaas/servicesdk/plugin/generator/maven/ServiceGeneratorMojo : Unsupported major.minor version 52.0
Step2
also specify JDK 1.8 in your Eclipse:
or else you will meet with this error: No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK
Step3
Maven clean install: use this option to skip unit test
Step4
If you are using SAP corporate network, please set up proxy argument here:
Step5
Use the following content for Settings.xml when you are doing Yaas development. Do not forget to set proxy also in xml:
This is very important
Step1
do use JDK1.8,
or else you will meet with this error:
also specify JDK 1.8 in your Eclipse:
or else you will meet with this error: No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK
Step3
Maven clean install: use this option to skip unit test
Step4
If you are using SAP corporate network, please set up proxy argument here:
Step5
Use the following content for Settings.xml when you are doing Yaas development. Do not forget to set proxy also in xml:
Step6
You will still meet with syntax error:
You should also add this folder into your Java build path:
After it is done, no syntax error any more:
You can now perform Maven build and you should see Build Success message. Congratulations!
Some reference