public abstract class AbstractVertxMojo extends AbstractMojo implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
| Modifier and Type | Field and Description |
|---|---|
protected Archive |
archive
Configure the packaging content.
|
protected BuildPluginManager |
buildPluginManager |
protected org.codehaus.plexus.PlexusContainer |
container
The Plexus container.
|
protected static String |
DEFAULT_CONF_DIR |
static String |
IO_VERTX_CORE_LAUNCHER
The vert.x Core Launcher class
|
protected String |
launcher
The main launcher class that will be used when launching the Vert.X applications.
|
protected LifecycleExecutor |
lifecycleExecutor
The component used to execute the second Maven execution.
|
protected MavenSession |
mavenSession
The Maven Session.
|
protected MavenProject |
project
The Maven project which will define and confiure the vertx-maven-plugin
|
protected String |
projectBuildDir
The project build output directory, defaults to ${project.build.directory} which will be target directory
of the project
|
protected List<org.eclipse.aether.repository.ArtifactRepository> |
remoteRepositories
The list of remote repositories that will be used to resolve artifacts
|
protected org.eclipse.aether.RepositorySystem |
repositorySystem |
protected org.eclipse.aether.DefaultRepositorySystemSession |
repositorySystemSession
The maven artifact resolution session, which will be used to resolve Maven artifacts
|
protected org.apache.maven.scm.manager.ScmManager |
scmManager |
protected boolean |
skip
Skip (globally) the processing made by this plugin.
|
protected boolean |
skipScmMetadata |
protected String |
verticle
The verticle that will be the main entry point on to the vertx application, the same property will be used
as "Main-Verticle;" attribute value on the MANIFEST.MF
|
protected static String |
VERTX_ARG_CONF
vert.x configuration option
|
protected static String |
VERTX_ARG_JAVA_OPT
vert.x java-opt argument
|
protected static String |
VERTX_ARG_LAUNCHER_CLASS
vert.x launcher argument
|
protected static String |
VERTX_ARG_REDEPLOY
vert.x redeploy argument
|
protected static String |
VERTX_ARG_REDEPLOY_GRACE_PERIOD
vert.x redeploy grace period
|
protected static String |
VERTX_ARG_REDEPLOY_SCAN_PERIOD
vert.x redeploy scan period
|
protected static String |
VERTX_ARG_REDEPLOY_TERMINATION_PERIOD
vert.x redeploy termination period
|
protected static String |
VERTX_COMMAND_START
vert.x command start
|
protected static String |
VERTX_COMMAND_STOP
vert.x command stop
|
protected static String |
VERTX_CONFIG_FILE_JSON |
protected static String |
VERTX_PACKAGING |
protected static String |
VERTX_PID_FILE |
protected static String |
VERTX_RUN_MODE_JAR |
protected static String[] |
WILDCARD_CONFIG_FILES |
| Constructor and Description |
|---|
AbstractVertxMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
asMavenCoordinates(Artifact artifact)
this method helps in resolving the
Artifact as maven coordinates
coordinates ::= group:artifact[:packaging[:classifier]]:version |
protected Archive |
computeArchive() |
void |
contextualize(org.codehaus.plexus.context.Context context)
Retrieves the Plexus container.
|
protected Set<Optional<File>> |
extractArtifactPaths(Set<Artifact> artifacts)
this method helps in extracting the Artifact paths from the Maven local repository.
|
protected Optional<File> |
getArtifactFile(Artifact artifact)
This method returns the project's primary artifact file, this method tries to compute the artifact file name
based on project finalName is configured or not
|
private List<ManifestCustomizerService> |
getManifestCustomizers() |
MavenProject |
getProject() |
org.apache.maven.scm.manager.ScmManager |
getScmManager() |
protected Optional<File> |
resolveArtifact(String artifact)
this method resolves maven artifact from all configured repositories using the maven coordinates
|
boolean |
skipScmMetadata() |
getLog, getPluginContext, setLog, setPluginContextpublic static final String IO_VERTX_CORE_LAUNCHER
protected static final String[] WILDCARD_CONFIG_FILES
protected static final String VERTX_ARG_CONF
protected static final String VERTX_ARG_LAUNCHER_CLASS
protected static final String DEFAULT_CONF_DIR
protected static final String VERTX_ARG_JAVA_OPT
protected static final String VERTX_ARG_REDEPLOY
protected static final String VERTX_ARG_REDEPLOY_SCAN_PERIOD
protected static final String VERTX_ARG_REDEPLOY_GRACE_PERIOD
protected static final String VERTX_ARG_REDEPLOY_TERMINATION_PERIOD
protected static final String VERTX_CONFIG_FILE_JSON
protected static final String VERTX_COMMAND_STOP
protected static final String VERTX_COMMAND_START
protected static final String VERTX_PACKAGING
protected static final String VERTX_PID_FILE
protected static final String VERTX_RUN_MODE_JAR
@Parameter(defaultValue="${project}", readonly=true) protected MavenProject project
@Parameter(defaultValue="${project.build.directory}") protected String projectBuildDir
@Parameter(defaultValue="${repositorySystemSession}", readonly=true) protected org.eclipse.aether.DefaultRepositorySystemSession repositorySystemSession
@Parameter(alias="remoteRepositories", defaultValue="${project.remoteArtifactRepositories}", readonly=true) protected List<org.eclipse.aether.repository.ArtifactRepository> remoteRepositories
@Parameter(defaultValue="${session}", readonly=true) protected MavenSession mavenSession
@Component protected BuildPluginManager buildPluginManager
@Component protected org.eclipse.aether.RepositorySystem repositorySystem
@Component protected LifecycleExecutor lifecycleExecutor
@Component protected org.apache.maven.scm.manager.ScmManager scmManager
@Parameter protected Archive archive
@Parameter(alias="verticle", property="vertx.verticle") protected String verticle
@Parameter(defaultValue="io.vertx.core.Launcher", property="vertx.launcher") protected String launcher
io.vertx.core.Launcher@Parameter(property="vertx.skip", defaultValue="false") protected boolean skip
@Parameter(alias="skipScmMetadata", property="vertx.skipScmMetadata", defaultValue="false") protected boolean skipScmMetadata
protected org.codehaus.plexus.PlexusContainer container
public MavenProject getProject()
protected Optional<File> resolveArtifact(String artifact)
protected Set<Optional<File>> extractArtifactPaths(Set<Artifact> artifacts)
protected String asMavenCoordinates(Artifact artifact)
Artifact as maven coordinates
coordinates ::= group:artifact[:packaging[:classifier]]:versionartifact - - the artifact which need to be represented as maven coordinateprotected Optional<File> getArtifactFile(Artifact artifact)
artifact - - the project artifact for which the target file will be neededOptional representing the optional project primary artifact filepublic void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizablecontext - the contextorg.codehaus.plexus.context.ContextException - if the container cannot be retrieved.public org.apache.maven.scm.manager.ScmManager getScmManager()
protected Archive computeArchive() throws MojoExecutionException
MojoExecutionExceptionprivate List<ManifestCustomizerService> getManifestCustomizers() throws MojoExecutionException
MojoExecutionExceptionpublic boolean skipScmMetadata()
Copyright © 2018. All rights reserved.