Class PackageMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.sling.maven.slingstart.AbstractSlingStartMojo
-
- org.apache.sling.maven.slingstart.PackageMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="package", defaultPhase=PRE_INTEGRATION_TEST, requiresDependencyResolution=TEST, threadSafe=true) public class PackageMojo extends AbstractSlingStartMojoCreate a Sling quickstart package (either JAR or WAR) based on the referenced model.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanattachArtifactIf set tofalsedoes not attach the generated artifact to Maven.protected booleancreateWebappIf set totruecreates a WAR artifact in addition to the standalone JAR from the model.-
Fields inherited from class org.apache.sling.maven.slingstart.AbstractSlingStartMojo
allowUnresolvedPomDependencies, DEFAULT_MODEL_PATTERN, mavenSession, project, projectHelper, usePomDependencies, usePomVariables
-
-
Constructor Summary
Constructors Constructor Description PackageMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()static FilegetNonPrimaryBuildFile(org.apache.maven.project.MavenProject project, String extension)-
Methods inherited from class org.apache.sling.maven.slingstart.AbstractSlingStartMojo
getResolverOptions, getStandaloneOutputDirectory, getTmpDir
-
-
-
-
Field Detail
-
createWebapp
@Parameter(defaultValue="false") protected boolean createWebapp
If set totruecreates a WAR artifact in addition to the standalone JAR from the model.
-
attachArtifact
@Parameter(defaultValue="true") protected boolean attachArtifact
If set tofalsedoes not attach the generated artifact to Maven. This setting takes only effect if the packaging of the current Maven project is notslingstart. Otherwise the generated artifact is always the main artifact (and is therefore always attached).
-
-