Package com.sap.cds.maven.plugin.build
Class AutoBuildMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.sap.cds.maven.plugin.AbstractCdsMojo
com.sap.cds.maven.plugin.build.BuildMojo
com.sap.cds.maven.plugin.build.WatchMojo
com.sap.cds.maven.plugin.build.AutoBuildMojo
- All Implemented Interfaces:
CdsMojoLogger
,org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="auto-build",
defaultPhase=NONE,
aggregator=true)
public class AutoBuildMojo
extends WatchMojo
Performs an initial CDS build (same as
Note: This goal can only be executed from the command line.
mvn cds:build
) and then watches for changes in the CDS model. If
changes are detected, the CDS model is re-built automatically.
In contrast to mvn cds:watch
this goal does not start the CAP Java application. Note: This goal can only be executed from the command line.
- Since:
- 1.25.0
-
Field Summary
Fields inherited from class com.sap.cds.maven.plugin.AbstractCdsMojo
buildContext, CDS_SERVICES_GROUPID, mojoExecution, PLUGIN_KEY, project, session, settings
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.maven.shared.invoker.InvocationRequest
createRequest
(List<String> goals, String... optionalProperties) protected Process
executeMaven
(org.apache.maven.shared.invoker.InvocationRequest request) protected void
executeMojo
(org.apache.maven.model.Plugin plugin, String goal, org.apache.maven.model.PluginExecution pluginExec) protected org.apache.maven.plugin.descriptor.MojoDescriptor
getMojoDescriptor
(org.apache.maven.model.Plugin plugin, String goal) Methods inherited from class com.sap.cds.maven.plugin.build.BuildMojo
executeBuild, executeGoal
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, strong
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AutoBuildMojo
public AutoBuildMojo()
-
-
Method Details
-
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
-