add profile for launchpad
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1692488 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/fling/README.md b/fling/README.md
index 3ba4543..cc28456 100644
--- a/fling/README.md
+++ b/fling/README.md
@@ -14,11 +14,19 @@
* [Content Loading](http://sling.apache.org/documentation/bundles/content-loading-jcr-contentloader.html): see `Sling-Initial-Content` in `pom.xml`
* [Maven Sling Plugin](http://sling.apache.org/documentation/development/sling.html): see `maven-sling-plugin` in `pom.xml`
-Run `mvn clean install -P localhost` in this directory to install the sample with _Maven Sling Plugin_ into a running local _Sling_ instance listening on port `8181`.
+There are two profiles to install this sample with _Maven Sling Plugin_ into a running local _Sling_ instance for convenience:
+
+When using _[Sling Launchpad](https://sling.apache.org/documentation/the-sling-engine/the-sling-launchpad.html)_ listening on port `8080` with default admin credentials run:
+
+ mvn clean install -P launchpad@localhost
+
+When using _[Apache Karaf](http://karaf.apache.org)_ with _[Sling Karaf Launchpad](https://github.com/apache/sling/tree/trunk/contrib/launchpad/karaf)_ listening on port `8181` with default admin credentials run:
+
+ mvn clean install -P karaf@localhost
This will install initial content under `/apps/fling`, `/content/fling` and `/etc/i18n/org.apache.sling.samples.fling`.
-Browse to http://localhost:8181/fling.html
+Browse to [http://localhost:8080/fling.html](http://localhost:8080/fling.html) or [http://localhost:8181/fling.html](http://localhost:8181/fling.html).
To install the required bundles/features on _Apache Karaf_ run the commands below:
diff --git a/fling/pom.xml b/fling/pom.xml
index 717ffc6..d2cfe6c 100644
--- a/fling/pom.xml
+++ b/fling/pom.xml
@@ -105,6 +105,15 @@
</dependencies>
<build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>maven-sling-plugin</artifactId>
+ <version>2.1.0</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -141,13 +150,36 @@
<profiles>
<profile>
+ <id>launchpad@localhost</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.sling</groupId>
+ <artifactId>maven-sling-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>install</phase>
+ <goals>
+ <goal>install</goal>
+ </goals>
+ <configuration>
+ <slingUrl>http://localhost:8080/system/console/install</slingUrl>
+ <user>admin</user>
+ <password>admin</password>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
<id>karaf@localhost</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>maven-sling-plugin</artifactId>
- <version>2.1.0</version>
<executions>
<execution>
<phase>install</phase>