cds:clean

Full name:

com.sap.cds:cds-maven-plugin:3.4.0:clean

Description:

Delete generated files and directories of the previous build from the CAP Java project.
Call mvn cds:clean or mvn com.sap.cds:cds-maven-plugin:clean to execute cleaning from the command line.

This goal deletes the following files and directories from the resource directory of the CAP Java project:

  • file: src/main/resources/**/csn.json
  • file: src/main/resources/**/schema.sql
  • directory: src/main/resources/**/edmx/
  • directory: ${codeOutputDirectory}

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.7.0.
  • Binds by default to the lifecycle phase: clean.

Required Parameters

Name Type Since Description
<codeOutputDirectory> File - Define the output directory for generated Java source code (POJOs).
Default: ${project.basedir}/src/gen/
User Property: cds.codeOutputDirectory

Optional Parameters

Name Type Since Description
<skip> boolean - Skip cleaning of generated files and directories.
Default: ${maven.clean.skip}
User Property: cds.clean.skip

Parameter Details

<codeOutputDirectory>

Define the output directory for generated Java source code (POJOs).
  • Type: java.io.File
  • Required: Yes
  • User Property: cds.codeOutputDirectory
  • Default: ${project.basedir}/src/gen/

<skip>

Skip cleaning of generated files and directories.
  • Type: boolean
  • Required: No
  • User Property: cds.clean.skip
  • Default: ${maven.clean.skip}