@Mojo(name="watch",
defaultPhase=NONE,
aggregator=true,
requiresDirectInvocation=true)
public class WatchMojo
extends AbstractCdsMojo
mvn cds:watch or mvn com.sap.cds:cds-maven-plugin:watch to start the CAP Java NG
application.buildContext, mojoExecution, PLUGIN_KEY, project, session, settings| Constructor and Description |
|---|
WatchMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.maven.shared.utils.cli.Commandline |
createMvnCmdLine(org.apache.maven.shared.invoker.InvocationRequest request)
Creates a new maven command line for given invocation request.
|
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) |
ensureCliExecuted, findGoalExecution, getTopmostProjectDir, isCliExecuted, logDebug, logDebug, logError, logError, logError, logInfo, logWarn, logWarn, logWarn, scanDirectory, setPropertypublic void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.maven.shared.invoker.InvocationRequest createRequest(List<String> goals)
protected org.apache.maven.shared.utils.cli.Commandline createMvnCmdLine(org.apache.maven.shared.invoker.InvocationRequest request)
throws org.apache.maven.plugin.MojoExecutionException
request - the invocation request, may not null.command line to execute maven in a new process.org.apache.maven.plugin.MojoExecutionException - if creation of command line failedprotected 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.MojoExecutionExceptionCopyright © 2021. All rights reserved.