You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by fl...@apache.org on 2012/06/19 00:12:02 UTC

svn commit: r1351512 - in /incubator/stanbol/branches/cameltrial/launchers/fullflow: ./ src/ src/main/ src/main/bundles/ src/main/resources/ src/main/resources/resources/ src/main/resources/resources/config/

Author: florent
Date: Mon Jun 18 22:12:01 2012
New Revision: 1351512

URL: http://svn.apache.org/viewvc?rev=1351512&view=rev
Log:
add the launcher

Added:
    incubator/stanbol/branches/cameltrial/launchers/fullflow/   (with props)
    incubator/stanbol/branches/cameltrial/launchers/fullflow/README.txt
    incubator/stanbol/branches/cameltrial/launchers/fullflow/pom.xml
    incubator/stanbol/branches/cameltrial/launchers/fullflow/src/
    incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/
    incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/bundles/
    incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/bundles/list.xml
    incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/resources/
    incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/resources/resources/
    incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/resources/resources/config/
    incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/resources/resources/config/org.apache.stanbol.examples.ExampleBootstrapConfig.cfg

Propchange: incubator/stanbol/branches/cameltrial/launchers/fullflow/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Jun 18 22:12:01 2012
@@ -0,0 +1,11 @@
+target
+bin
+*.iml
+*.ipr
+*.iws
+.settings
+.project
+.classpath
+.externalToolBuilders
+maven-eclipse.xml
+.metadata

Added: incubator/stanbol/branches/cameltrial/launchers/fullflow/README.txt
URL: http://svn.apache.org/viewvc/incubator/stanbol/branches/cameltrial/launchers/fullflow/README.txt?rev=1351512&view=auto
==============================================================================
--- incubator/stanbol/branches/cameltrial/launchers/fullflow/README.txt (added)
+++ incubator/stanbol/branches/cameltrial/launchers/fullflow/README.txt Mon Jun 18 22:12:01 2012
@@ -0,0 +1,23 @@
+This module builds a runnable Stanbol Enhancer jar using the Sling Launchpad Maven plugin,
+including the bundles defined at src/main/bundles/list.xml
+
+To start this after building use:
+
+  java -Xmx512M -jar target/org.apache.stanbol.launchers.full-0.9.0-incubating-SNAPSHOT.jar
+
+The Stanbol Enhancer HTTP endpoint should then be available at 
+
+  http://localhost:8080
+
+So that you can POST content using, for example:
+
+  curl -H "Content-Type: text/plain" -T data/text-examples/obama-signing.txt http://localhost:8080/engines
+
+Configure any required parameter for the enhancement engines, at
+
+  http://localhost:8080/system/console/
+
+The OSGi state is stored in the ./sling folder.
+
+The logs are found at sling/logs/error.log and can be configured from the
+OSGi console.

Added: incubator/stanbol/branches/cameltrial/launchers/fullflow/pom.xml
URL: http://svn.apache.org/viewvc/incubator/stanbol/branches/cameltrial/launchers/fullflow/pom.xml?rev=1351512&view=auto
==============================================================================
--- incubator/stanbol/branches/cameltrial/launchers/fullflow/pom.xml (added)
+++ incubator/stanbol/branches/cameltrial/launchers/fullflow/pom.xml Mon Jun 18 22:12:01 2012
@@ -0,0 +1,225 @@
+<?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>
+  <parent>
+    <groupId>org.apache.stanbol</groupId>
+    <artifactId>stanbol-parent</artifactId>
+    <version>0.9.0-incubating</version>
+    <!--<relativePath>../../parent</relativePath>-->
+  </parent>
+
+  <groupId>org.apache.stanbol</groupId>
+  <artifactId>org.apache.stanbol.launchers.fullflow</artifactId>
+  <packaging>jar</packaging>
+
+  <name>Apache Stanbol Launcher - Full with Flow</name>
+  <description>Runnable jar that runs the full Stanbol configuration</description>
+
+  <scm>
+    <connection>
+      scm:svn:http://svn.apache.org/repos/asf/incubator/stanbol/tags/0.9.0-incubating/launchers/fullflow/
+    </connection>
+    <developerConnection>
+      scm:svn:https://svn.apache.org/repos/asf/incubator/stanbol/tags/0.9.0-incubating/launchers/fullflow/
+    </developerConnection>
+    <url>http://incubator.apache.org/stanbol/</url>
+  </scm>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-clean-plugin</artifactId>
+        <configuration>
+          <filesets>
+            <fileset>
+              <directory>.</directory>
+              <includes>
+                <include>sling/**</include>
+                <include>factstore/**</include>
+                <include>*.log</include>
+              </includes>
+            </fileset>
+          </filesets>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.sling</groupId>
+        <artifactId>maven-launchpad-plugin</artifactId>
+        <!--
+          TODO the maven-launchpad-plugin can also generate a war file and
+          Karaf description, we could add this. See
+          http://sling.apache.org/site/maven-launchpad-plugin.html
+        -->
+        <executions>
+          <execution>
+            <id>prepare-package</id>
+            <goals>
+              <goal>prepare-package</goal>
+            </goals>
+            <configuration>
+              <includeDefaultBundles>false</includeDefaultBundles>
+              <!-- Standalone jar requires an OSGi http service implementation -->
+              <jarWebSupport>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.apache.felix.http.jetty</artifactId>
+                <version>2.2.0</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.rat</groupId>
+        <artifactId>apache-rat-plugin</artifactId>
+        <configuration>
+          <excludes></excludes>
+        </configuration>
+      </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>
+      <classifier>app</classifier>
+    </dependency>
+    
+    <!-- OSGi Framemework Bundle List -->
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.launchers.bundlelists.osgiframework</artifactId>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+    
+    <!-- Stanbol Commons Bundle List -->
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.launchers.bundlelists.stanbolcommons</artifactId>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+
+    <!-- Stanbol CMS Adapter Bundle List -->
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.cmsadapter.bundlelist</artifactId>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+
+    <!-- Stanbol Contenthub Bundle List -->
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.contenthub.bundlelist</artifactId>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+
+    <!-- Stanbol Data Bundle List -->
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.data.bundlelists.defaultdata</artifactId>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+    <dependency> <!-- include all OpenNLP models in the full launcher -->
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.data.bundlelists.opennlp</artifactId>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+
+    <!-- Stanbol Enhancer Bundle List -->
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.enhancer.bundlelist</artifactId>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+
+    <!-- Stanbol Entityhub Bundle List -->
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.entityhub.bundlelist</artifactId>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+
+    <!-- Stanbol FactStore Bundle List -->
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.factstore.bundlelist</artifactId>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+
+    <!-- Stanbol Ontology Manager Bundle List -->
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.ontologymanager.bundlelist</artifactId>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+
+    <!-- Stanbol Rules Bundle List -->
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.rules.bundlelist</artifactId>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+    
+    <!-- Stanbol Reasoners Bundle List -->
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.reasoners.bundlelist</artifactId>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+    
+    <!-- Stanbol Flow Bundle List -->
+    <dependency>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.flow.bundlelist</artifactId>
+      <version>0.9.0-incubating-SNAPSHOT</version>
+      <type>partialbundlelist</type>
+      <scope>provided</scope>
+    </dependency>
+
+  </dependencies>
+</project>

Added: incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/bundles/list.xml
URL: http://svn.apache.org/viewvc/incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/bundles/list.xml?rev=1351512&view=auto
==============================================================================
--- incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/bundles/list.xml (added)
+++ incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/bundles/list.xml Mon Jun 18 22:12:01 2012
@@ -0,0 +1,78 @@
+<?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 initial bundles for the Stanbol Sling-based standalone launcher.
+	-->
+<bundles>
+  
+  <!-- *********************************************************************
+          start level 10 TO 19 reserved for required libraries
+          (internal and external)
+       ********************************************************************* -->
+  <!-- General-purpose libraries -->
+  <startLevel level="10">
+<!-- 		<bundle> only used by the Contenthub -->
+<!-- 			<groupId>eu.medsea.mimeutil</groupId> -->
+<!-- 			<artifactId>mime-util</artifactId> -->
+<!-- 			<version>2.1.3</version> -->
+<!-- 		</bundle> -->
+  </startLevel>
+
+  <!-- Jersey -->
+  <startLevel level="15">
+    <bundle>
+      <groupId>com.sun.jersey</groupId>
+      <artifactId>jersey-client</artifactId>
+      <version>1.7</version>
+    </bundle>
+  </startLevel>
+
+  <!-- Stanbol Commons -->
+  <startLevel level="17">
+    <!-- The common web interface -->
+    <bundle>
+      <groupId>org.apache.stanbol</groupId>
+      <artifactId>org.apache.stanbol.commons.web.sparql</artifactId>
+      <version>0.9.0-incubating</version>
+    </bundle>
+  </startLevel>
+
+  <!-- *********************************************************************
+          start level 20 TO 24 reserved for Stanbol Framework
+          (Enhancer, Entityhub, Contenthub, Factstore ... incl. Web Fragments)
+       ********************************************************************* -->
+
+  <!-- Stanbol OWL now part of commons -->
+  <!--
+  <startLevel level="22">
+  </startLevel>
+  -->
+  
+  <!-- *********************************************************************
+          start level 25 TO 29 reserved for Stanbol plug-ins
+          (currently the Enhancement Engines)
+       ********************************************************************* -->
+  
+  <startLevel level="26">
+  </startLevel>
+
+  <!-- *********************************************************************
+          start level >= 30 are unused
+       ********************************************************************* -->
+  
+</bundles>

Added: incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/resources/resources/config/org.apache.stanbol.examples.ExampleBootstrapConfig.cfg
URL: http://svn.apache.org/viewvc/incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/resources/resources/config/org.apache.stanbol.examples.ExampleBootstrapConfig.cfg?rev=1351512&view=auto
==============================================================================
--- incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/resources/resources/config/org.apache.stanbol.examples.ExampleBootstrapConfig.cfg (added)
+++ incubator/stanbol/branches/cameltrial/launchers/fullflow/src/main/resources/resources/config/org.apache.stanbol.examples.ExampleBootstrapConfig.cfg Mon Jun 18 22:12:01 2012
@@ -0,0 +1,31 @@
+# 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.
+
+
+# Example default OSGi config that's loaded
+# at startup if Sling's org.apache.sling.launchpad.installer
+# bundle is active.
+#
+# The filename defines the config PID.
+
+# Factory configs should be named like foo.bar-X.cfg 
+# whereo.foo.bar is the factory PID and X a unique value
+# for that PID. The actual config PID is then automatically 
+# generated PID, and the value of X is stored as an alias 
+# property in the configuration.
+
+message=This test config should be loaded at startup
+
+anotherValue = This is AnotherValue.
\ No newline at end of file