Class AddTargetPlatformMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.sap.cds.maven.plugin.AbstractCdsMojo
com.sap.cds.maven.plugin.add.AddTargetPlatformMojo
All Implemented Interfaces:
CdsMojoLogger, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="addTargetPlatform", aggregator=true) public class AddTargetPlatformMojo extends AbstractCdsMojo
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.

Since:
1.5.0
  • Field Details

    • repositorySystemSession

      @Parameter(defaultValue="${repositorySystemSession}", required=true, readonly=true) protected org.eclipse.aether.RepositorySystemSession repositorySystemSession
      Defines settings and components that control the repository system.
  • Constructor Details

    • AddTargetPlatformMojo

      public AddTargetPlatformMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getIntegrationTestTemplates

      protected List<String[]> getIntegrationTestTemplates()
      Returns:
      a List of string arrays containing path of class template and name of class to create.