incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r911419 - in /sling/whiteboard/bdelacretaz/mini-standalone-sling: ./ pom.xml src/ src/main/ src/main/bundles/ src/main/bundles/list.xml
Date Thu, 18 Feb 2010 14:37:51 GMT
Author: bdelacretaz
Date: Thu Feb 18 14:37:50 2010
New Revision: 911419

URL: http://svn.apache.org/viewvc?rev=911419&view=rev
Log:
Minimal example using maven-launchpad-plugin to create a runnable Sling jar

Added:
    sling/whiteboard/bdelacretaz/mini-standalone-sling/   (with props)
    sling/whiteboard/bdelacretaz/mini-standalone-sling/pom.xml   (with props)
    sling/whiteboard/bdelacretaz/mini-standalone-sling/src/
    sling/whiteboard/bdelacretaz/mini-standalone-sling/src/main/
    sling/whiteboard/bdelacretaz/mini-standalone-sling/src/main/bundles/
    sling/whiteboard/bdelacretaz/mini-standalone-sling/src/main/bundles/list.xml   (with props)

Propchange: sling/whiteboard/bdelacretaz/mini-standalone-sling/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Feb 18 14:37:50 2010
@@ -0,0 +1,11 @@
+target
+bin
+*.iml
+*.ipr
+*.iws
+.settings
+.project
+.classpath
+.externalToolBuilders
+maven-eclipse.xml
+sling

Added: sling/whiteboard/bdelacretaz/mini-standalone-sling/pom.xml
URL: http://svn.apache.org/viewvc/sling/whiteboard/bdelacretaz/mini-standalone-sling/pom.xml?rev=911419&view=auto
==============================================================================
--- sling/whiteboard/bdelacretaz/mini-standalone-sling/pom.xml (added)
+++ sling/whiteboard/bdelacretaz/mini-standalone-sling/pom.xml Thu Feb 18 14:37:50 2010
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more contributor license
+agreements. See the NOTICE file distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file to you under the Apache License,
+Version 2.0 (the "License"); you may not use this file except in compliance with the
+License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed under the
+License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+either express or implied. See the License for the specific language governing permissions
+and limitations under the License.
+-->
+
+<project 
+    xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.sling</groupId>
+    <artifactId>mini-standalone-sling</artifactId>
+    <packaging>jar</packaging>
+    <version>0.9.0-SNAPSHOT</version>
+    <name>Minimal standalone Sling project</name>
+    <description>
+        Uses the Sling maven-launchpad-plugin to create a 
+        runnable Sling jar based on just a pom and a list of 
+        additional bundles.
+    </description>
+    <url>http://sling.apache.org</url>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.sling</groupId>
+                <artifactId>maven-launchpad-plugin</artifactId>
+                <version>2.0.5-SNAPSHOT</version>
+                <executions>
+                    <execution>
+                        <id>prepare-package</id>
+                        <goals>
+                            <goal>prepare-package</goal>
+                        </goals>
+                        <configuration>
+                            <!-- Which version of the standard list of launchpad bundles
to use -->
+                            <defaultBundleList>
+                                <version>6-SNAPSHOT</version>
+                            </defaultBundleList>
+                            <!-- Standalone jar requires an OSGi http service implementation
-->
+                            <jarWebSupport>
+                                <groupId>org.apache.felix</groupId>
+                                <artifactId>org.apache.felix.http.jetty</artifactId>
+                                <version>2.0.4</version>
+                            </jarWebSupport>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <manifest>
+                            <!-- make the generated jar runnable -->
+                            <addClasspath>true</addClasspath>
+                            <mainClass>org.apache.sling.launchpad.app.Main</mainClass>
+                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <echo>****************************************************************************</echo>
+                                <echo>To start Sling, use java -jar to run the jar
found in the "target" folder.</echo>
+                                <echo>Delete the "sling" folder to remove any existing
Sling state and content.</echo>
+                                <echo>****************************************************************************</echo>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <!-- maven-launchpad-plugin builds on the launchpad.base app -->
+            <groupId>org.apache.sling</groupId>
+            <artifactId>org.apache.sling.launchpad.base</artifactId>
+            <version>2.1.1-SNAPSHOT</version>
+            <classifier>app</classifier>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+</project>
\ No newline at end of file

Propchange: sling/whiteboard/bdelacretaz/mini-standalone-sling/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: sling/whiteboard/bdelacretaz/mini-standalone-sling/src/main/bundles/list.xml
URL: http://svn.apache.org/viewvc/sling/whiteboard/bdelacretaz/mini-standalone-sling/src/main/bundles/list.xml?rev=911419&view=auto
==============================================================================
--- sling/whiteboard/bdelacretaz/mini-standalone-sling/src/main/bundles/list.xml (added)
+++ sling/whiteboard/bdelacretaz/mini-standalone-sling/src/main/bundles/list.xml Thu Feb 18
14:37:50 2010
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more contributor license
+agreements. See the NOTICE file distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file to you under the Apache License,
+Version 2.0 (the "License"); you may not use this file except in compliance with the
+License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed under the
+License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+either express or implied. See the License for the specific language governing permissions
+and limitations under the License.
+-->
+
+<!-- 
+    List of additional bundles to include in our 
+    Sling instance, on top of the standard launchpad bundles.
+ -->
+<bundles>
+    <startLevel level="5">
+        <bundle>
+            <!-- As an example, include the Apache Felix shell  -->
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.apache.felix.shell</artifactId>
+            <version>1.4.2</version>
+        </bundle>
+    </startLevel>
+
+    <startLevel level="10">
+        <bundle>
+            <!-- Put this in a different start level just as an example -->
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.apache.felix.shell.tui</artifactId>
+            <version>1.4.1</version>
+        </bundle>
+    </startLevel>
+</bundles>

Propchange: sling/whiteboard/bdelacretaz/mini-standalone-sling/src/main/bundles/list.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message