@Mojo(name="build",
requiresDependencyResolution=TEST,
defaultPhase=PACKAGE,
threadSafe=true)
public class BuildMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected File |
archive |
protected String |
archiveClassifier |
protected String |
archivePrefix |
protected File |
assembly
Directory used to create the assembly.
|
protected String |
javaMainClass
The main class to execute for the assembly.
|
protected File |
source
Directory of resources use to augment the files in the hawt-app archive.
|
protected org.codehaus.plexus.archiver.Archiver |
tarArchiver |
protected org.codehaus.plexus.archiver.Archiver |
zipArchiver |
Constructor and Description |
---|
BuildMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
@Parameter(property="hawt-app.source", defaultValue="${basedir}/src/main/hawt-app") protected File source
@Parameter(property="hawt-app.assembly", defaultValue="${project.build.directory}/hawt-app") protected File assembly
@Parameter(property="hawt-app.archive", defaultValue="${project.build.directory}/${project.artifactId}-${project.version}-app.zip") protected File archive
@Parameter(property="hawt-app.archiveClassifier", defaultValue="app") protected String archiveClassifier
@Parameter(property="hawt-app.archivePrefix", defaultValue="${project.artifactId}-${project.version}-app/") protected String archivePrefix
@Parameter(property="hawt-app.javaMainClass") protected String javaMainClass
@Component(role=org.codehaus.plexus.archiver.Archiver.class, hint="tar") protected org.codehaus.plexus.archiver.Archiver tarArchiver
@Component(role=org.codehaus.plexus.archiver.Archiver.class, hint="zip") protected org.codehaus.plexus.archiver.Archiver zipArchiver
Copyright © 2011–2017 Red Hat. All rights reserved.