Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
JerryWang
Product and Topic Expert
Product and Topic Expert
267


Open url: https://devportal.yaas.io/tools/servicesdk/index.html#Plug-ins

The 'generate-service' plug-in goal

This goal provides support to expose your RAML API as JAX-RS endpoints in your Java project. It also helps keep the implementation in sync with your API definition.

To configure the generator plug-in to execute the generate-service goal, you must add this plug-in configuration to your project.

Template:

Actual content in pom.xml:


The 'generate-client' plug-in goal

Use this Maven goal to generate client code for a RAML API definition during the project build process.

To configure the generator plug-in to execute the generate-client goal, you must modify or extend the service-sdk-generator-maven-plugin configuration.

Template:

Actual content in pom.xml:

mvn clean install, the corresponding client class is automatically generated in the folder specified in pom.xml: