tree: 73d0c1c83e17bd33e79f7557bebb5a2ebb006950 [path history] [tgz]
  1. src/
  2. pom.xml
  3. Readme.md
sling-slingstart-feature-maven-plugin/Readme.md

Sling Start Feature Maven Plugin

This Maven Plugin is the Feature Model based version of the Slingstart Maven Plugin. It does not depend on the predecessor to keep the PM and FM based code base separate.

Build

This plugin is built like usual with:

mvn clean install

Usage

The plugin can be used (see sling-org-apache-sling-feature-starter module in Sling Whiteboard) like this:

<plugin>
    <groupId>org.apache.sling</groupId>
    <artifactId>slingstart-feature-maven-plugin</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <extensions>true</extensions>
    <executions>
        <execution>
            <id>start-container</id>
            <goals>
                <goal>start</goal>
                <goal>stop</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <launchpadJar>${project.build.directory}/${project.artifactId}-${project.version}.jar</launchpadJar>
        <parallelExecution>false</parallelExecution>
        <servers>
            <server>
                <port>${http.port}</port>
                <controlPort>${sling.control.port}</controlPort>
                <debug>true</debug>
                <stdOutFile>launchpad.out</stdOutFile>
            </server>
        </servers>
    </configuration>
</plugin>

Issues

The Feature Launcher does not support to be started in the background and so this plugin will be not end the build when Sling is started.