@Mojo(name="package", defaultPhase=PACKAGE, requiresDependencyCollection=COMPILE_PLUS_RUNTIME, requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class PackageMojo extends AbstractVertxMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
attach
Whether or not the created archive needs to be attached to the project.
|
protected String |
classifier
Classifier to add to the artifact generated.
|
protected ServiceFileCombiner |
combiner |
private static String |
JAR_EXTENSION |
protected PackageService |
packageService |
protected CombinationStrategy |
serviceProviderCombination
The service provider combination strategy.
|
archive, 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 |
|---|
PackageMojo() |
| Modifier and Type | Method and Description |
|---|---|
private void |
attachIfNeeded(File jar) |
static String |
computeOutputName(Archive archive,
MavenProject project,
String classifier) |
void |
execute() |
private void |
fixEmptyClassifier() |
asMavenCoordinates, computeArchive, contextualize, extractArtifactPaths, getArtifactFile, getProject, getScmManager, resolveArtifact, skipScmMetadatagetLog, getPluginContext, setLog, setPluginContext@Parameter(name="serviceProviderCombination", defaultValue="COMBINE") protected CombinationStrategy serviceProviderCombination
@Parameter(name="classifier") protected String classifier
@Parameter(name="attach", defaultValue="true") protected boolean attach
@Component protected PackageService packageService
@Component protected ServiceFileCombiner combiner
private static final String JAR_EXTENSION
public static String computeOutputName(Archive archive, MavenProject project, String classifier)
public void execute()
throws MojoExecutionException
MojoExecutionExceptionprivate void attachIfNeeded(File jar)
private void fixEmptyClassifier()
Copyright © 2018. All rights reserved.