@Mojo(name="assembly",
defaultPhase=PACKAGE,
threadSafe=true,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
requiresDependencyCollection=COMPILE_PLUS_RUNTIME)
public class AssemblyMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
attachArtifacts
Attach artifacts to the maven build?
|
protected String |
classifier
Classifier used for the Attached artifact
|
protected String |
finalName
Final name of assembly.
|
protected File |
outputDirectory
Directory to output assembly.
|
protected org.apache.maven.project.MavenProject |
project |
protected Boolean |
skipArtifactsThatAreDirectories
Skip artifacts that are directories?
|
protected File |
stageDirectory
Directory to stage assembly.
|
| Constructor and Description |
|---|
AssemblyMojo() |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.maven.artifact.Artifact> |
artifactsToStage() |
void |
execute() |
boolean |
shouldArtifactBeStaged(org.apache.maven.artifact.Artifact a) |
@Parameter(property="stageDirectory",
defaultValue="${project.build.directory}/stork",
required=true)
protected File stageDirectory
@Parameter(property="outputDirectory",
defaultValue="${project.build.directory}",
required=true)
protected File outputDirectory
@Parameter(property="finalName",
defaultValue="${project.build.finalName}",
required=true)
protected String finalName
@Parameter(property="skipArtifactsThatAreDirectories",
defaultValue="false",
required=true)
protected Boolean skipArtifactsThatAreDirectories
@Parameter(property="attachArtifacts",
defaultValue="false",
required=true)
protected Boolean attachArtifacts
@Parameter(property="classifier") protected String classifier
@Parameter(defaultValue="${project}",
readonly=true)
protected org.apache.maven.project.MavenProject project
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic List<org.apache.maven.artifact.Artifact> artifactsToStage()
public boolean shouldArtifactBeStaged(org.apache.maven.artifact.Artifact a)
Copyright © 2016–2021 Fizzed, Inc. All rights reserved.