@Mojo(name="watch",
defaultPhase=NONE,
aggregator=true)
public class WatchMojo
extends BuildMojo
mvn cds:watch or mvn com.sap.cds:cds-maven-plugin:watch to start the CAP Java NG
application.
<dependencies>
...
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>runtime</scope>
</dependency>
...
</dependencies>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
noStart
Indicates whether the CAP Java NG application will be started or not.
|
buildContext, CDS_SERVICES_GROUPID, mojoExecution, PLUGIN_KEY, project, session, settings| Constructor and Description |
|---|
WatchMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.maven.shared.invoker.InvocationRequest |
createRequest(List<String> goals) |
void |
execute() |
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) |
executeBuild, executeGoalensureCliExecuted, findGoalExecution, findSrvProject, getReactorBaseDirectory, isCliExecuted, logDebug, logDebug, logError, logError, logError, logInfo, logWarn, logWarn, logWarn, scanDirectory, setProperty, strongprotected boolean noStart
cds:build is executed on changes in the CDS model.public void execute()
throws org.apache.maven.plugin.MojoExecutionException
protected org.apache.maven.shared.invoker.InvocationRequest createRequest(List<String> goals)
protected void executeMojo(org.apache.maven.model.Plugin plugin,
String goal,
org.apache.maven.model.PluginExecution pluginExec)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected Process executeMaven(org.apache.maven.shared.invoker.InvocationRequest request) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.maven.plugin.descriptor.MojoDescriptor getMojoDescriptor(org.apache.maven.model.Plugin plugin,
String goal)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2022. All rights reserved.