Class AbstractSlingStartMojo

    • Field Detail

      • project

        @Parameter(property="project",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
      • projectHelper

        @Component
        protected org.apache.maven.project.MavenProjectHelper projectHelper
      • mavenSession

        @Parameter(property="session",
                   readonly=true,
                   required=true)
        protected org.apache.maven.execution.MavenSession mavenSession
      • usePomVariables

        @Parameter(defaultValue="false")
        protected boolean usePomVariables
        If set to 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.
      • usePomDependencies

        @Parameter(defaultValue="false")
        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. The following sections in the effective pom are considered during resolving the version:
        1. The project's artifact itself
        2. The project's dependencies
        3. The project's dependencyManagement
      • allowUnresolvedPomDependencies

        @Parameter(defaultValue="false")
        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.
    • Constructor Detail

      • AbstractSlingStartMojo

        public AbstractSlingStartMojo()
    • Method Detail

      • getTmpDir

        protected File getTmpDir()
      • getResolverOptions

        protected org.apache.sling.provisioning.model.ModelUtility.ResolverOptions getResolverOptions()
        Returns:
        Resolving options to be used when building an effective provisioning model.
      • getStandaloneOutputDirectory

        protected File getStandaloneOutputDirectory()