@Mojo(name="package", defaultPhase=PRE_INTEGRATION_TEST, requiresDependencyResolution=TEST, threadSafe=true) public class PackageMojo extends AbstractSlingStartMojo
Modifier and Type | Field and Description |
---|---|
protected boolean |
attachArtifact
If set to
false does not attach the generated artifact to Maven. |
protected boolean |
createWebapp
If set to
true creates a WAR artifact in addition to the standalone JAR from the model. |
allowUnresolvedPomDependencies, DEFAULT_MODEL_PATTERN, mavenSession, project, projectHelper, usePomDependencies, usePomVariables
Constructor and Description |
---|
PackageMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
static File |
getNonPrimaryBuildFile(org.apache.maven.project.MavenProject project,
String extension) |
getResolverOptions, getStandaloneOutputDirectory, getTmpDir
@Parameter(defaultValue="false") protected boolean createWebapp
true
creates a WAR artifact in addition to the standalone JAR from the model.@Parameter(defaultValue="true") protected boolean attachArtifact
false
does not attach the generated artifact to Maven.
This setting takes only effect if the packaging of the current Maven project is not slingstart
.
Otherwise the generated artifact is always the main artifact (and is therefore always attached).Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.