update fling sample

* set parent version to 24
* fix dependencies
* adjust profile with maven-sling-plugin

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1690305 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/fling/pom.xml b/fling/pom.xml
index 3b8f68f..717ffc6 100644
--- a/fling/pom.xml
+++ b/fling/pom.xml
@@ -24,7 +24,7 @@
   <parent>
     <groupId>org.apache.sling</groupId>
     <artifactId>sling</artifactId>
-    <version>20</version>
+    <version>24</version>
     <relativePath/>
   </parent>
 
@@ -45,8 +45,15 @@
   <dependencies>
     <!-- javax -->
     <dependency>
+      <groupId>javax.inject</groupId>
+      <artifactId>javax.inject</artifactId>
+      <version>1</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
       <groupId>javax.jcr</groupId>
       <artifactId>jcr</artifactId>
+      <version>2.0</version>
       <scope>provided</scope>
     </dependency>
     <!-- OSGi -->
@@ -134,7 +141,7 @@
 
   <profiles>
     <profile>
-      <id>localhost</id>
+      <id>karaf@localhost</id>
       <build>
         <plugins>
           <plugin>
@@ -149,8 +156,8 @@
                 </goals>
                 <configuration>
                   <slingUrl>http://localhost:8181/system/console/install</slingUrl>
-                  <user>admin</user>
-                  <password>admin</password>
+                  <user>karaf</user>
+                  <password>karaf</password>
                 </configuration>
               </execution>
             </executions>