cds:auto-build

Full name:

com.sap.cds:cds-maven-plugin:2.9.0:auto-build

Description:

Performs an initial CDS build (same as mvn cds:build) and then watches for changes in the CDS model. If changes are detected, the CDS model is re-built automatically. In contrast to mvn cds:watch this goal does not start the CAP Java application.
Note: This goal can only be executed from the command line.

Attributes:

  • Requires a Maven project to be executed.
  • Executes as an aggregator goal.
  • The goal is not marked as thread-safe and thus does not support parallel builds.
  • Since version: 1.25.0.

Required Parameters

Name Type Since Description
<excludes> List<String> - A comma separated list with GLOB pattern describing directories and files to be excluded from watching for changes. Changes on these files are generally ignored. In case Spring Boot Developer tools are used, changes on all non-excluded files in the project directory trigger an update of the trigger file.
See here for further details about the supported GLOB patterns.
Default: **/node_modules,**/target,**/gen
User Property: cds.watch.excludes
<includes> List<String> - A comma separated list of GLOB patterns describing files to be included in watching for changes. Changes on these files will trigger a cds:build. In case Spring Boot Developer tools are not used, changes of these files will also trigger an explicit rebuild and restart of the application.
See here for further details about the supported GLOB patterns.
Default: **/*.cds,**/*.csv
User Property: cds.watch.includes
<testRun> boolean 2.4.0 Indicates whether spring-boot:run or spring-boot:test-run is executed to start the application. If the property value is true, spring-boot:test-run is executed. Otherwise spring-boot:run is used.
Default: false
User Property: testRun

Parameter Details

<excludes>

A comma separated list with GLOB pattern describing directories and files to be excluded from watching for changes. Changes on these files are generally ignored. In case Spring Boot Developer tools are used, changes on all non-excluded files in the project directory trigger an update of the trigger file.
See here for further details about the supported GLOB patterns.
  • Type: java.util.List<java.lang.String>
  • Required: Yes
  • User Property: cds.watch.excludes
  • Default: **/node_modules,**/target,**/gen

<includes>

A comma separated list of GLOB patterns describing files to be included in watching for changes. Changes on these files will trigger a cds:build. In case Spring Boot Developer tools are not used, changes of these files will also trigger an explicit rebuild and restart of the application.
See here for further details about the supported GLOB patterns.
  • Type: java.util.List<java.lang.String>
  • Required: Yes
  • User Property: cds.watch.includes
  • Default: **/*.cds,**/*.csv

<testRun>

Indicates whether spring-boot:run or spring-boot:test-run is executed to start the application. If the property value is true, spring-boot:test-run is executed. Otherwise spring-boot:run is used.
  • Type: boolean
  • Since: 2.4.0
  • Required: Yes
  • User Property: testRun
  • Default: false