Apache Sling Kickstart Maven Plugin

Clone this repo:
  1. bdb2336 SLING-12459 - Redirect sonarcloud notifications to commits@apache.sling.org by Robert Munteanu · 7 weeks ago master
  2. 2d1389e SLING-12094 - Use GitHub for the Maven scm.url value by Robert Munteanu · 1 year, 2 months ago
  3. 140445f SLING-11709 - Set up Jira autolinks to all Sling Github projects by Robert Munteanu · 1 year, 8 months ago
  4. 48efa0d Bump maven-shared-utils from 3.2.1 to 3.3.3 by dependabot[bot] · 2 years, 7 months ago
  5. 39ba3d0 SLING-10676 - remove SECURITY.md which is not needed by Bertrand Delacretaz · 3 years, 5 months ago

Apache Sling

Build Status Coverage Sonarcloud Status JavaDoc Maven Central License

Sling Start Feature Maven Plugin

This Maven Plugin is the Feature Model based version of the Slingstart Maven Plugin. It does not depend on its predecessor to keep the Provisioning Model and Feature Model code bases separate.

Build

This plugin is built as usual with:

mvn clean install

Usage

The plugin can be used like this:

<plugin>
    <groupId>org.apache.sling</groupId>
    <artifactId>sling-kickstart-maven-plugin</artifactId>
    <version>0.0.8</version>
    <extensions>true</extensions>
    <executions>
        <execution>
            <id>start-container</id>
            <goals>
                <goal>start</goal>
                <goal>stop</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <parallelExecution>false</parallelExecution>
        <servers>
            <server>
                <port>${http.port}</port>
                <controlPort>${sling.control.port}</controlPort>
                <debug>true</debug>
                <stdOutFile>kickstart.out</stdOutFile>
            </server>
        </servers>
    </configuration>
</plugin>

Customize Kickstart Dependency

The Plugin comes with the latest released version of the Kickstart dependency. That said it provides the ability to use a different Kickstart version. These are the two options:

  • kickstartJar: path to the Kickstart JAR file
  • kickstartDependency: Maven Dependency of the Kickstart artifact

Notes

For now this Plugin only supports the starting and stopping of a Sling instance for example to run IT tests.