Hi,

I tried the same last week and it did not work on my machine (for whatever reason). I assume its working for you. What maven version are you using?

Apart from that +1

Carsten

Bertrand Delacretaz wrote:
Hi,

The patch shown below allows one to auto-install Sling bundles when
building them, using "-P autoDeployBundle" on the mvn command line.

WDYT, should we do this? I find it useful for development, but maybe
you guys are doing this differently?

-Bertrand

Index: parent/pom.xml
===================================================================
--- parent/pom.xml      (revision 612756)
+++ parent/pom.xml      (working copy)
@@ -206,6 +206,35 @@
         </pluginManagement>
     </build>

+    <profiles>
+      <profile>
+        <!--
+          Use this profile to deploy the bundle automatically,
+          during development
+        -->
+        <id>autoDeployBundle</id>
+        <activation>
+          <activeByDefault>false</activeByDefault>
+        </activation>
+        <build>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.sling</groupId>
+              <artifactId>maven-sling-plugin</artifactId>
+              <executions>
+                <execution>
+                  <id>install-bundle</id>
+                  <goals>
+                    <goal>install</goal>
+                  </goals>
+                </execution>
+              </executions>
+            </plugin>
+          </plugins>
+        </build>
+      </profile>
+    </profiles>
+
     <mailingLists>
         <mailingList>
             <name>Sling Development List</name>



--
Carsten Ziegeler
[EMAIL PROTECTED]

Reply via email to