cds:addSample

Full name:

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

Deprecated:

since 2.9.0. Use AddMojo with option -Dfeature=SAMPLE instead.

Description:

Add a custom handler, a unit test, and CDS sample files to the CAP Java project.
Call mvn cds:addSample or mvn com.sap.cds:cds-maven-plugin:addSample to add sample classes and CDS files.

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.5.0.

Optional Parameters

Name Type Since Description
<overwrite> boolean - Define if existing files are overwritten (true) without warning.
Default: false
User Property: overwrite

Parameter Details

<overwrite>

Define if existing files are overwritten (true) without warning.
  • Type: boolean
  • Required: No
  • User Property: overwrite
  • Default: false