| Package | Description |
|---|---|
| com.sap.cds.maven.plugin | |
| com.sap.cds.maven.plugin.add | |
| com.sap.cds.maven.plugin.build | |
| com.sap.cds.maven.plugin.util |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCdsMojo
An abstract base class for all CDS-related Mojos (Maven Old Java Object)
|
| Modifier and Type | Class and Description |
|---|---|
class |
AddIntegrationTestMojo
Add an integration test module to the current CAP Java project.
Call mvn com.sap.cds:cds-maven-plugin:addIntegrationTest to add an integration test module.It automatically detects the OData version of the CAP Java project and adds the corresponding integration test class. Note: This goal can only be executed from the command line. |
class |
AddSampleMojo
Add sample Java handler class, unit test, and CDS sample files to the current CAP Java project.
Call 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. |
class |
AddTargetPlatformMojo
Add a target platform
cds-starter-${targetPlatform} to the dependencies of the current CAP Java project
if missing.Call mvn com.sap.cds:cds-maven-plugin:addTargetPlatform -DtargetPlatform=cloudfoundry to add Cloud
Foundry target platform.Note: This goal can only be executed from the command line. |
| Modifier and Type | Class and Description |
|---|---|
class |
BuildMojo
Performs a cds build with Java class generation by invoking the goals
install-node,
install-cdsdk, cds and generate of the cds-maven-plugin on
current project. |
class |
CdsMojo
Execute CDS commands on the current CAP Java project.
Call mvn cds:cds or mvn com.sap.cds:cds-maven-plugin:cds on the command line to execute all
configured CDS commands of the project in current directory.Several CDS commands can be configured in one execution block and they’re executed in the specified order. |
class |
CleanMojo
Clean generated files and directories of the previous build from the current CAP Java project.
Call mvn com.sap.cds:cds-maven-plugin:clean to execute cleaning from command line.This goal deletes the following files and directories from the resource directory of the current CAP Java project: file: src/main/resources/**/csn.json file: src/main/resources/**/schema.sql directory: src/main/resources/**/edmx/ directory: ${codeOutputDirectory} |
class |
GenerateMojo
Generate Java Pojos for type-safe access to the CDS model.
This goal scans the resource directory for a csn.json file and uses it for Java source code generation. |
class |
InstallCdsdkMojo
Install @sap/cds-dk in the current CAP Java
project.
By default, this goal looks for an already installed @sap/cds-dk and skips installation if it was found. |
class |
InstallNodeMojo
Download and install a Node.js distribution on the local file system.
If the requested version is already installed, the download and installation is skipped. This goal also recognizes proxy configurations in your ~/.m2/settings.xml. |
class |
NpmMojo
Execute an
npm command on the current CAP Java project.Call mvn com.sap.cds:cds-maven-plugin:npm -Darguments="..." to execute npm command with
given arguments. |
class |
WatchMojo
Starts a CAP Java NG application and watches for changes in the CDS model.
|
| Modifier and Type | Method and Description |
|---|---|
int |
ProcessExecutor.execute(OutputStream outputStream,
OutputStream errOutputStream,
CdsMojoLogger logger) |
String |
ProcessExecutor.executeAndGetResult(CdsMojoLogger logger)
Executes the process.
|
static File |
Utils.findExecutable(String execName,
CdsMojoLogger logger)
Finds the location of given executable on local file-system.
|
| Constructor and Description |
|---|
DirectoryWatcher(Path root,
DirectoryWatcher.FileChangedListener listener,
CdsMojoLogger logger,
List<String> includes,
List<String> excludes)
Constructs a new
DirectoryWatcher instance. |
Downloader(CdsMojoLogger logger)
Constructs a new
Downloader instance. |
Downloader(List<org.apache.maven.settings.Proxy> proxies,
CdsMojoLogger logger)
Constructs a new
Downloader instance. |
Copyright © 2021. All rights reserved.