@Mojo(name="build",
defaultPhase=PACKAGE,
requiresProject=false)
public class BuildMojo
extends org.apache.maven.plugin.AbstractMojo
Builder.| Modifier and Type | Field and Description |
|---|---|
boolean |
batchMode
Enforces Batch mode for underlying Maven commands and sets appropriate flags.
|
String |
bom
Optional BOM file, which can be used as an input source.
|
String |
configFilePath
Path to the YAML configuration file.
|
String |
environment
Environment, for which the WAR is being generated.
|
boolean |
installArtifacts
If
true, Custom WAR packager will automatically install the generated artifacts. |
String |
mvnSettingsFile
Optional path to the Maven settings file to be used during the build.
|
String |
tmpDir
Temporary directory, which will be used to build subcomponents and to generate outputs.
|
String |
warVersion
Version of the WAR file to be set.
|
| Constructor and Description |
|---|
BuildMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
build(Config cfg,
File buildDir) |
void |
execute() |
protected Config |
getConfigOrFail() |
@Parameter(property="configFile",
required=true)
@CheckForNull
public String configFilePath
@Parameter(property="version",
defaultValue="1.0-SNAPSHOT")
@CheckForNull
public String warVersion
@Parameter(property="tmpDir",
defaultValue="tmp")
@CheckForNull
public String tmpDir
@Parameter(property="mvnSettingsFile") @CheckForNull public String mvnSettingsFile
@Parameter(property="bomFile") @CheckForNull public String bom
@Parameter(property="environment") @CheckForNull public String environment
@Parameter(property="batchMode") public boolean batchMode
mvnSettingsFile instead to set values.@Parameter(property="installArtifacts") public boolean installArtifacts
true, Custom WAR packager will automatically install the generated artifacts.public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void build(@Nonnull Config cfg, @Nonnull File buildDir) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected Config getConfigOrFail() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2004–2019. All rights reserved.