Package com.sap.cds.maven.plugin.build
Class BuildMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.sap.cds.maven.plugin.AbstractCdsMojo
com.sap.cds.maven.plugin.build.BuildMojo
- All Implemented Interfaces:
CdsMojoLogger,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
WatchMojo
@Mojo(name="build",
defaultPhase=NONE,
aggregator=true)
public class BuildMojo
extends AbstractCdsMojo
Perform a CDS build with Java class generation executing the following goals of the
cds-maven-plugin in this order:
The list of goals and their order is fixed. Any Java property provided on the command line with the
-D option is forwarded to the invoked goals.
Call
Note: This goal can only be executed from the command line.
Call
mvn cds:build or mvn com.sap.cds:cds-maven-plugin:build to perform the CDS build. This goal is
very useful for local development to test changes to the CDS model.Note: This goal can only be executed from the command line.
- Since:
- 1.17.0
-
Field Summary
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
Modifier and TypeMethodDescriptionprotected org.apache.maven.shared.invoker.InvocationRequestcreateRequest(List<String> goals, String... optionalProperties) voidexecute()protected voidprotected voidexecuteGoal(org.apache.maven.model.Plugin plugin, String goal) protected ProcessexecuteMaven(org.apache.maven.shared.invoker.InvocationRequest request) protected voidexecuteMojo(org.apache.maven.model.Plugin plugin, String goal, org.apache.maven.model.PluginExecution pluginExec) protected org.apache.maven.plugin.descriptor.MojoDescriptorgetMojoDescriptor(org.apache.maven.model.Plugin plugin, String goal) 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
-
Constructor Details
-
BuildMojo
public BuildMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
executeBuild
protected void executeBuild() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
executeGoal
protected void executeGoal(org.apache.maven.model.Plugin plugin, String goal) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
createRequest
-
executeMojo
protected void executeMojo(org.apache.maven.model.Plugin plugin, String goal, org.apache.maven.model.PluginExecution pluginExec) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
getMojoDescriptor
protected org.apache.maven.plugin.descriptor.MojoDescriptor getMojoDescriptor(org.apache.maven.model.Plugin plugin, String goal) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-