@Mojo(name="stop")
public class StopLocalMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected String |
ajpPort |
protected List<Destination> |
destinations |
protected String |
httpNonProxyHosts |
protected String |
httpPort |
protected String |
httpsPort |
protected String |
jmxPort |
protected org.apache.maven.project.MavenProject |
mavenProject |
protected org.apache.maven.execution.MavenSession |
mavenSession |
protected org.apache.maven.plugin.BuildPluginManager |
pluginManager |
protected String |
proxyHost |
protected String |
proxyPort |
protected Boolean |
remoteDebug |
protected String |
remoteDebugPort |
protected String |
sdkInstallPath |
protected String |
sdkPlugin |
protected String |
sdkPluginVersion |
protected String |
sdkServerContentPath |
protected String |
sdkSymbolicLink |
protected String |
shutDownPort |
protected String |
source |
protected String[] |
vmProperties |
Constructor and Description |
---|
StopLocalMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
deleteSdkDirectory()
Deletes the local SAP CP Neo SDK server directory.
|
void |
execute() |
protected void |
installServerIfNotExisting()
Downloads and installs the SAP CP Neo SDK.
|
protected boolean |
isSdkInstalled() |
protected boolean |
isServerInstalled() |
protected String |
removeTrailingSlash(String str) |
protected void |
stopServerIfRunning()
Stops the local SAP CP Neo SDK server.
|
@Parameter(required=true) protected String source
@Parameter(required=true) protected String sdkInstallPath
@Parameter protected String sdkServerContentPath
@Parameter(required=true) protected String sdkPlugin
@Parameter(required=true) protected String sdkPluginVersion
@Parameter protected String sdkSymbolicLink
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject mavenProject
@Parameter(defaultValue="${session}", readonly=true) protected org.apache.maven.execution.MavenSession mavenSession
@Component protected org.apache.maven.plugin.BuildPluginManager pluginManager
@Parameter protected String proxyHost
@Parameter protected String proxyPort
@Parameter protected String httpNonProxyHosts
@Parameter(defaultValue="true") protected Boolean remoteDebug
@Parameter(defaultValue="8003") protected String shutDownPort
@Parameter(defaultValue="5005") protected String remoteDebugPort
@Parameter protected String[] vmProperties
@Parameter protected String httpPort
@Parameter protected String httpsPort
@Parameter protected String ajpPort
@Parameter protected String jmxPort
@Parameter protected List<Destination> destinations
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected boolean isSdkInstalled()
protected boolean isServerInstalled()
protected void stopServerIfRunning() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void deleteSdkDirectory() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void installServerIfNotExisting() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2021 SAP SE. All rights reserved.