cds:addTargetPlatform

Full name:

com.sap.cds:cds-maven-plugin:2.7.0:addTargetPlatform

Description:

Add a target platform dependency (cds-starter-${targetPlatform}) to the service module dependencies of the CAP Java project. If the dependency already exists, nothing is done.
Call mvn cds:addTargetPlatform -DtargetPlatform=cloudfoundry or mvn com.sap.cds:cds-maven-plugin:addTargetPlatform -DtargetPlatform=cloudfoundry to add CloudFoundry target platform.

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.

Required Parameters

Name Type Since Description
<targetPlatform> String - Specify the name of the target platform to add.
Allowed values are:
  • cloudfoundry: adds support for CloudFoundry
  • k8s: adds support for K8s/Kyma

User Property: targetPlatform

Parameter Details

<targetPlatform>

Specify the name of the target platform to add.
Allowed values are:
  • cloudfoundry: adds support for CloudFoundry
  • k8s: adds support for K8s/Kyma
  • Type: java.lang.String
  • Required: Yes
  • User Property: targetPlatform