public abstract class AbstractSlingStartMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowUnresolvedPomDependencies
If set to true, an exception is throws when "usePomDependencies" is set to true and some
dependency version could not be resolved in the Maven POM.
|
static String |
DEFAULT_MODEL_PATTERN |
protected org.apache.maven.execution.MavenSession |
mavenSession |
protected org.apache.maven.project.MavenProject |
project |
protected org.apache.maven.project.MavenProjectHelper |
projectHelper |
protected boolean |
usePomDependencies
If set to
true , Artifact dependencies from provisioning file without explicit version are tried
to be resolved against the versions given in the Maven POM. |
protected boolean |
usePomVariables
If set to
true , properties from the Maven POM can be used as variables in the provisioning files. |
Constructor and Description |
---|
AbstractSlingStartMojo() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.sling.provisioning.model.ModelUtility.ResolverOptions |
getResolverOptions() |
protected File |
getStandaloneOutputDirectory() |
protected File |
getTmpDir() |
getLog, getPluginContext, setLog, setPluginContext
public static final String DEFAULT_MODEL_PATTERN
@Parameter(property="project", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
@Component protected org.apache.maven.project.MavenProjectHelper projectHelper
@Parameter(property="session", readonly=true, required=true) protected org.apache.maven.execution.MavenSession mavenSession
@Parameter(defaultValue="false") protected boolean usePomVariables
true
, properties from the Maven POM can be used as variables in the provisioning files.
The resolved variables are added to the generated provisioning file, so other tools using this model
do not have to resolve them themselves.@Parameter(defaultValue="false") protected boolean usePomDependencies
true
, Artifact dependencies from provisioning file without explicit version are tried
to be resolved against the versions given in the Maven POM.
The following sections in the effective pom are considered during resolving the version:
@Parameter(defaultValue="false") protected boolean allowUnresolvedPomDependencies
protected File getTmpDir()
protected org.apache.sling.provisioning.model.ModelUtility.ResolverOptions getResolverOptions()
protected File getStandaloneOutputDirectory()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.