{"ref":"artifact:cap-java-cds-maven-plugin","page":"/artifacts/cap-java-cds-maven-plugin","json":"/artifacts/cap-java-cds-maven-plugin.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"cap-java-cds-maven-plugin","name":"com.sap.cds:cds-maven-plugin","artifact_type":"build-tool","ecosystem":"cap","domain":"developer-experience","origin_ring":"sap-official","description":{"one_line":"The Maven plugin that runs CDS build steps in a CAP Java project: compiling the model, generating typed Java accessor interfaces and adding facets to an existing project.","short":"Maven plugin running CDS build steps in a CAP Java project","what_it_solves":"Runs the CDS build steps inside a Maven build for a project in the [cds-services-bom](artifact:cap-java-cds-services-bom) release line. It can install Node.js and the [@sap/cds-dk](artifact:sap-cds-dk) development kit in a pinned version, run arbitrary cds commands such as build and deploy, and clean a project of the previous build's generated artifacts. Its add goal expands an existing project with one feature at a time, the same goal the archetype calls with -Dfeature=CF or -Dfeature=TINY_SAMPLE right after project generation, and its generate goal turns every structured type in the CDS model into a typed Java accessor interface, in JavaBeans or fluent style. It is declared as a build plugin in pom.xml rather than as a dependency, with its version usually pinned through a property shared with the rest of the CAP Java modules."},"links":{"homepage":"https://central.sonatype.com/artifact/com.sap.cds/cds-maven-plugin","docs":"https://cap.cloud.sap/docs/java/assets/cds-maven-plugin-site/plugin-info.html"},"identity":{"license":"SAP DEVELOPER LICENSE AGREEMENT for CAP"},"source_available":false,"compat":{"runtimes":["java","build-time"]},"flavors":[{"key":"java","source":{"url":"https://repo1.maven.org/maven2/com/sap/cds/cds-maven-plugin/5.1.1/cds-maven-plugin-5.1.1.pom","title":"com.sap.cds:cds-maven-plugin — Maven POM","checked":"2026-09-19","quote":"Maven Plugin for CDS Services Java"}}],"drafted_with_ai":true,"provides":[{"capability":"capability:generators","what_it_does":"Adds the add goal, which expands an existing CAP Java project with one feature at a time, such as Cloud Foundry support or a tiny sample model, by editing the project's pom.xml and other configuration files.","sources":[{"url":"https://cap.cloud.sap/docs/java/developing-applications/building#maven-build-options","title":"Building Applications","checked":"2026-09-19","quote":"Perform arbitrary CDS commands on a CAP Java project"},{"url":"https://cap.cloud.sap/docs/java/getting-started#run-the-cap-java-maven-archetype","title":"Getting Started","checked":"2026-09-19","quote":"This command adds the following dependency to the pom.xml:"}]},{"capability":"capability:typing","what_it_does":"Adds the generate goal, which compiles every structured type in the CDS model into a typed Java accessor interface at build time, in JavaBeans or fluent style.","sources":[{"url":"https://cap.cloud.sap/docs/java/cds-data","title":"Working with CDS Data","checked":"2026-09-19","quote":"The generated accessor interfaces allow for hybrid access and easy serialization to JSON."},{"url":"https://cap.cloud.sap/docs/java/developing-applications/building#maven-build-options","title":"Building Applications","checked":"2026-09-19","quote":"Generate Java classes for type-safe access"}]},{"capability":"capability:local-development","what_it_does":"The watch goal, mvn cds:watch, does the CDS build and can start the application, the Java counterpart of cds watch. With Spring Boot Devtools on the project it takes advantage of their reload mechanism; without them it performs a complete restart of the application after a CDS model change, which capire calls slower, and on Windows the goal only works if they are enabled.","sources":[{"url":"https://cap.cloud.sap/docs/java/developing-applications/running","title":"Running Applications (CAP Java) — capire","checked":"2026-09-27","quote":"To be able to use mvn cds:watch instead of mvn com.sap.cds:cds-maven-plugin:watch add the plugin group com.sap.cds to your local ~/.m2/settings.xml"},{"url":"https://cap.cloud.sap/docs/java/developing-applications/running","title":"Running Applications (CAP Java) — capire, watch goal","checked":"2026-10-15","quote":"CDS Maven plugin also provide the goal watch that does CDS build and can start your application."},{"url":"https://cap.cloud.sap/docs/java/developing-applications/running","title":"Running Applications (CAP Java) — capire, the reload mechanism","checked":"2026-10-15","quote":"When you add the Spring Boot Devtools to your project, the watch goal can take advantage of the reload mechanism."},{"url":"https://cap.cloud.sap/docs/java/developing-applications/running","title":"Running Applications (CAP Java) — capire, without Devtools","checked":"2026-10-15","quote":"In case your application doesn't use the Spring Boot Devtools, the watch goal performs a complete restart of the application after CDS model changes, which is slower."},{"url":"https://cap.cloud.sap/docs/java/developing-applications/running","title":"Running Applications (CAP Java) — capire, Windows","checked":"2026-10-15","quote":"On Windows, the watch goal only works if the Spring Boot Devtools are enabled."}],"facets":[{"key":"local_stack_part","value":["CAP service"],"source":{"url":"https://cap.cloud.sap/docs/java/developing-applications/running","title":"Running Applications (CAP Java) — capire, watch goal","checked":"2026-10-15","quote":"CDS Maven plugin also provide the goal watch that does CDS build and can start your application."},"applies_to":{"ecosystems":["cap"],"flavors":["java"]}}]}],"requires":[{"ref":"artifact:sap-cds-dk","for":"Compiling the CDS model to CSN needs a Node.js runtime with the [@sap/cds-dk](artifact:sap-cds-dk) development kit, which the plugin installs and runs itself unless a global installation is used.","requirement":"required","role":"cds-model-compiler","sources":[{"url":"https://cap.cloud.sap/docs/java/developing-applications/building","title":"Building Applications","checked":"2026-09-19","quote":"the CDS model needs to be compiled to a CSN file which requires a Node.js runtime with module"}]}],"history":[{"date":"2026-09-19","field":"provides.what_it_does","from":null,"to":"Adds the add goal, which expands an existing CAP Java project with one feature at a time, such as Cloud Foundry support or a tiny sample model, by editing the project's pom.xml and other configuration files.","reason":"New CAP Java provider discovered through official CAP documentation. Facts describe the pinned source revision, not verified deployment compatibility."},{"date":"2026-09-19","field":"provides.what_it_does","from":null,"to":"Adds the generate goal, which compiles every structured type in the CDS model into a typed Java accessor interface at build time, in JavaBeans or fluent style.","reason":"New CAP Java provider discovered through official CAP documentation. Facts describe the pinned source revision, not verified deployment compatibility."},{"date":"2026-10-15","field":"provides[capability:local-development].what_it_does, facets","from":"The watch goal, mvn cds:watch, rebuilds and restarts a CAP Java application on a model change, the Java counterpart of cds watch.","to":"The same goal with the three conditions capire states: the Devtools reload mechanism, the complete restart without them, and the Windows requirement.","reason":"capability:local-development curation on 2026-10-15. The edge said the goal rebuilds and restarts and left out that whether it restarts or reloads depends on Spring Boot Devtools, and that on Windows it does not work without them, which is the difference a reader on this flavor meets first."}],"provenance":{"discovered_via":[{"source":"source:curator"}],"first_seen":"2026-09-19"}},"effective_normative_relations":[],"readings":{"liveness":[{"label":"Maintenance","tier":"unknown","evidence":"no release data"},{"label":"Continuity","tier":"unknown","evidence":"no contributor data"},{"label":"Repository","tier":"unknown","evidence":"no repository data"}],"compatibility":[{"label":"Declared for","tier":"fair","evidence":"nothing declared"},{"label":"Survived majors","tier":"unknown","evidence":"no release dates"},{"label":"Maintainer's CI","tier":"unknown","evidence":"no repository data"}],"practice":[{"label":"Tests","tier":"unknown","evidence":"not crawled"},{"label":"Docs","tier":"unknown","evidence":"docs link declared, tree not read"},{"label":"Changelog","tier":"unknown","evidence":"not crawled"}],"reach":[{"value":null,"unit":"installs/week"},{"value":null,"unit":"watching"}]},"signals":{"crawled_at":"2026-10-24","npm":"not published under this name"},"edges":{"maintainers":[],"contributors":[],"explained_by":[],"alternative_to_this":[],"needed_by":[],"available_via":[],"parts":[],"add_ons":[],"answered_through_parts":[]}}