cds:auto-build
Full name:
com.sap.cds:cds-maven-plugin:4.6.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.
- 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,**/genUser 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,**/*.csvUser 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: falseUser Property: testRun |
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<goals> |
List<String> |
3.8.0 |
The list of goals to execute in the specified order. Default: install-node,install-cdsdk,npm,resolve,cds,generateUser Property: goals |
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.
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
<goals>
The list of goals to execute in the specified order.
- Type:
java.util.List<java.lang.String> - Since:
3.8.0 - Required:
No - User Property:
goals - Default:
install-node,install-cdsdk,npm,resolve,cds,generate
<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.
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