@Mojo(name="start", threadSafe=true, requiresDependencyCollection=COMPILE_PLUS_RUNTIME, requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class StartMojo extends AbstractRunMojo
AbstractRunMojo.JavaBuildCallback, AbstractRunMojo.ResourceBuildCallback| Modifier and Type | Field and Description |
|---|---|
protected String |
appId
the custom id that will be assigned when running vertx application, this should be unique.
|
protected String |
classifier
The artifact classifier.
|
protected String |
runMode
this parameter is used to decide which mode the application should be started, it can have two values
"jar" or "exploded" default mode is "jar"
|
classesDirectory, config, jvmArgs, optionalRunExtraArgs, redeploy, redeployGracePeriod, redeployScanPeriod, redeployTerminationPeriod, vertxCommand, workDirectoryarchive, buildPluginManager, container, DEFAULT_CONF_DIR, IO_VERTX_CORE_LAUNCHER, launcher, lifecycleExecutor, mavenSession, project, projectBuildDir, remoteRepositories, repositorySystem, repositorySystemSession, scmManager, skip, skipScmMetadata, verticle, VERTX_ARG_CONF, VERTX_ARG_JAVA_OPT, VERTX_ARG_LAUNCHER_CLASS, VERTX_ARG_REDEPLOY, VERTX_ARG_REDEPLOY_GRACE_PERIOD, VERTX_ARG_REDEPLOY_SCAN_PERIOD, VERTX_ARG_REDEPLOY_TERMINATION_PERIOD, VERTX_COMMAND_START, VERTX_COMMAND_STOP, VERTX_CONFIG_FILE_JSON, VERTX_PACKAGING, VERTX_PID_FILE, VERTX_RUN_MODE_JAR, WILDCARD_CONFIG_FILES| Constructor and Description |
|---|
StartMojo() |
| Modifier and Type | Method and Description |
|---|---|
private void |
appendConfigIfRequired(List<String> argsList) |
private void |
appendLauncherIfRequired(List<String> argsList) |
private void |
appendSysProperties(List<String> argsList) |
private void |
buildJarIfRequired(File fatjar) |
void |
execute() |
private String |
getAppId()
This will compute the vertx application id that will be passed to the vertx applicaiton with "-id"
option, if the appId is not found in the configuration an new
UUID will be generated and assigned |
private void |
writePidFile(String vertxProcId) |
addClasspath, isVertxLauncher, run, scanAndLoadConfigsasMavenCoordinates, computeArchive, contextualize, extractArtifactPaths, getArtifactFile, getProject, getScmManager, resolveArtifact, skipScmMetadatagetLog, getPluginContext, setLog, setPluginContext@Parameter(alias="mode", property="vertx.start.mode", defaultValue="jar") protected String runMode
@Parameter(alias="appId", property="vertx.app.id") protected String appId
UUID will be used to generate the id. The same id will be used to terminate the application
via the "vertx:stop" goal@Parameter(name="classifier") protected String classifier
public void execute()
throws MojoExecutionException,
MojoFailureException
execute in interface Mojoexecute in class AbstractRunMojoMojoExecutionExceptionMojoFailureExceptionprivate void writePidFile(String vertxProcId) throws MojoExecutionException
MojoExecutionExceptionprivate void buildJarIfRequired(File fatjar)
private void appendLauncherIfRequired(List<String> argsList) throws MojoExecutionException
MojoExecutionExceptionCopyright © 2018. All rights reserved.