cds:add

Full name:

com.sap.cds:cds-maven-plugin:2.9.0:add

Description:

Adds support of a feature to the CAP Java project. If the feature already exists, nothing is done.
Call mvn cds:add -Dfeature=MTX or mvn com.sap.cds:cds-maven-plugin:add -Dfeature=MTX to add Multitenancy support.

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: 2.1.0.

Required Parameters

Name Type Since Description
<feature> String - Defines the feature to add.
Allowed values are:
  • H2
  • H2 in-memory support is added
  • SQLITE
  • Sqlite in-memory support is added
  • MTX
  • Adds required Multitenancy dependencies and profiles to the CAP Java project, but not the MTXS sidecar.
  • POSTGRESQL
  • Adds PostgreSQL support
  • LIQUIBASE
  • Adds Liquibase and Testcontainers support
  • SECURITY
  • Adds security support
  • KAFKA
  • Adds Kafka support
  • SAMPLE
  • Adds sample files to the project
  • TINY_SAMPLE
  • Adds sample files to the project with minimal content

Note: The Liquibase feature also adds support for TestContainers to the project, which requires a Docker installation. If you experience problems with TestContainers or don't have a Docker installation, remove this dependency.
User Property: feature
<profile> String - Defines the profile name in application.yaml where this feature is added. An existing profile with the same name is overwritten by the new feature.
Default: default
User Property: profile

Parameter Details

<feature>

Defines the feature to add.
Allowed values are:
  • H2
  • H2 in-memory support is added
  • SQLITE
  • Sqlite in-memory support is added
  • MTX
  • Adds required Multitenancy dependencies and profiles to the CAP Java project, but not the MTXS sidecar.
  • POSTGRESQL
  • Adds PostgreSQL support
  • LIQUIBASE
  • Adds Liquibase and Testcontainers support
  • SECURITY
  • Adds security support
  • KAFKA
  • Adds Kafka support
  • SAMPLE
  • Adds sample files to the project
  • TINY_SAMPLE
  • Adds sample files to the project with minimal content

Note: The Liquibase feature also adds support for TestContainers to the project, which requires a Docker installation. If you experience problems with TestContainers or don't have a Docker installation, remove this dependency.
  • Type: java.lang.String
  • Required: Yes
  • User Property: feature

<profile>

Defines the profile name in application.yaml where this feature is added. An existing profile with the same name is overwritten by the new feature.
  • Type: java.lang.String
  • Required: Yes
  • User Property: profile
  • Default: default