Package com.sap.cds.maven.plugin.add
Class AddMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.sap.cds.maven.plugin.AbstractCdsMojo
com.sap.cds.maven.plugin.add.AddMojo
- All Implemented Interfaces:
CdsMojoLogger,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
Adds support of a feature to the CAP Java project. If the feature already exists, nothing is done.
Call
Note: This goal can only be executed from the command line.
Call
mvn cds:add -Dfeature=MTXS or mvn com.sap.cds:cds-maven-plugin:add -Dfeature=MTXS to add
Multitenancy support.Note: This goal can only be executed from the command line.
- Since:
- 2.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enumeration with the keys of all supported features to add. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.aether.RepositorySystemSessionDefines settings and components that control the repository system.Fields inherited from class com.sap.cds.maven.plugin.AbstractCdsMojo
buildContext, CDS_SERVICES_GROUPID, mojoExecution, PLUGIN_KEY, project, session, settingsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sap.cds.maven.plugin.AbstractCdsMojo
ensureCliExecuted, findGoalExecution, findSrvProject, getReactorBaseDirectory, isCliExecuted, logDebug, logDebug, logError, logError, logError, logInfo, logWarn, logWarn, logWarn, scanDirectory, setProperty, strongMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
repositorySystemSession
@Parameter(defaultValue="${repositorySystemSession}", required=true, readonly=true) protected org.eclipse.aether.RepositorySystemSession repositorySystemSessionDefines settings and components that control the repository system.
-
-
Constructor Details
-
AddMojo
public AddMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getIntegrationTestTemplates
- Returns:
- a
Listof string arrays containing path of class template and name of class to create.
-