Commit 5b59064c authored by Yann Mombrun's avatar Yann Mombrun
Browse files

New version 2.0.4-SNAPShOT of the WebLab Bundle

WEBLAB-1380 - Update the configuration of karaf plugin in order to ensure the installation of all the required library to enable it to start offline. Also configure it to be totally offline.

git-svn-id: svn://svn.forge.objectweb.org/svnroot/weblab/trunk/WebLabApplications/bundle@4139 a803c184-d8de-4a0e-a52b-d3eef88212b6
parent 180a63d1
......@@ -2,14 +2,14 @@ Welcome to WebLab Bundle ${project.version}
**************************************************************************************
WebLab Bundle aims to gather coherent services and portlets around the WebLab platform to
demonstrate its capability in term of service integration and orchestration for
demonstrate its capability in term of service integration and orchestration for
unstructured document processing and retrieval.
This bundle listen to a local folder (toIndex) in order to analyse office based documents (doc, ppt, pdf ...),
This bundle listen to a local folder (toIndex) in order to analyse office based documents (doc, ppt, pdf ...),
index them to finally offer access to them through a portal.
The processing capabilities are limited (only default rules for the named-entity extraction engine are used)
but it allows to have a complete processing chain and ease integration and tests of
but it allows to have a complete processing chain and ease integration and tests of
new components either on processing chain or on user interface.
This bundle is regularly released (http://weblab-project.org/index.php?title=Download)
This bundle is regularly released (http://weblab-project.org/index.php?title=Download)
and build nightly with latest services/portlets (see http://bamboo.ow2.org/browse/WEBLAB-BUNDLE).
For an up-to-date description, please refers to http://weblab-project.org/index.php?title=Bundle
......@@ -40,7 +40,7 @@ Getting Started
**************************************************************************************
You should have a jdk 1.7 or greater installed in order to run the WebLab bundle,
JAVA_HOME must be declared and java must be available in your path
Ports 8080, 8005, 8009 (Liferay), 8181, 8105, 8109 (Tomcat), 8282 (Jetty), 61616 (ActiveMQ) must be available.
Ports 8080, 8005, 8009 (Liferay), 8181, 8105, 8109 (Tomcat), 8282 (Jetty in Karaf), 61616 (ActiveMQ in Karaf) must be available.
Your computer should have at least a 4 core processor and 6Go of RAM to run the WebLab bundle.
Remember that WebLab is a server application and not a desktop one.
......@@ -48,7 +48,7 @@ Running
**************************************************************************************
1. Launch the WebLab with "weblab.sh start" (Linux) or "weblab.bat start" (Windows) regarding your OS, (It may takes several minutes)
2. Go with your favourite browser to http://localhost:8080/
File processing chain is started automatically, go to the 'Search' tab, then you can start a search for processed documents.
More details
......
......@@ -4,7 +4,7 @@
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
......@@ -39,7 +39,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<version>1.9.1</version>
<executions>
<execution>
<id>attach-artifacts</id>
......
......@@ -7,7 +7,7 @@
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
......
......@@ -11,7 +11,7 @@
<prop key="karaf.http.port">8282</prop>
<prop key="tomcat.path">apache-tomcat-7.0.59</prop>
<prop key="liferay.path">liferay-portal-6.1.2-ce-ga3/tomcat-7.0.40</prop>
<prop key="karaf.path">karaf-weblab-2.0.3</prop>
<prop key="karaf.path">karaf-weblab-2.0.4-SNAPSHOT</prop>
<prop key="fuseki.path">jena-fuseki-1.0.1</prop>
<prop key="files.to.index">${weblab.data}toIndex</prop>
......@@ -20,7 +20,7 @@
<prop key="content.manager.opts">-Dweblab.content.manager=org.ow2.weblab.content.impl.SecureFileContentManager -Dfile.path=${content.folder}</prop>
<prop key="karaf.java.opts">-server -Xms128M -Xmx1024m -XX:MaxPermSize=512m -Dcom.sun.management.jmxremote -Dweblab.files=${files.to.index}?maxMessagesPerPoll=500 -Dweblab.warcs=${warcs.to.index}?maxMessagesPerPoll=500 ${content.manager.opts}</prop>
<prop key="karaf.java.opts">-server -Xms128M -Xmx1024m -XX:MaxPermSize=512m -Dcom.sun.management.jmxremote -Dweblab.files=${files.to.index}?initialDelay=60000 -Dweblab.warcs=${warcs.to.index}?initialDelay=60000 ${content.manager.opts}</prop>
<prop key="tomcat.java.opts">-Xmx1500m -XX:MaxPermSize=256m -Dtomcat.http.port=${tomcat.http.port} -Dweblab.home=${weblab.home} -Dweblab.files=${files.to.index} -Dweblab.warcs=${warcs.to.index} -Dsolr.solr.home=${weblab.conf}solr -Dweblab.repository=${weblab.data}repository -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=18181 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false ${content.manager.opts}</prop>
<prop key="liferay.java.opts">-Xmx1024m -XX:MaxPermSize=512m -Dweblab.client.url=http://localhost:${tomcat.http.port}/exposed-configuration/weblab-client.xml -Dweblab.portlet.filter.url=http://localhost:${tomcat.http.port}/exposed-configuration/weblab-portlet-filters.xml -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=18080 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false ${content.manager.opts}</prop>
</props>
......
<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
......@@ -17,17 +16,42 @@
<packaging>karaf-assembly</packaging>
<name>WebLab Custom Karaf Distribution.</name>
<dependencyManagement>
<!-- Import Karaf POM to use the correct version of the Karaf dependencies -->
<dependencies>
<dependency>
<groupId>org.apache.karaf</groupId>
<artifactId>karaf</artifactId>
<version>${karaf.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<version>${karaf.version}</version>
<type>kar</type>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>standard</artifactId>
<version>${karaf.version}</version>
<type>xml</type>
<classifier>features</classifier>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>spring</artifactId>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>enterprise</artifactId>
<type>xml</type>
<classifier>features</classifier>
<scope>runtime</scope>
......@@ -70,6 +94,7 @@
<version>${weblab.bundle.version}</version>
<type>xml</type>
<classifier>features</classifier>
<scope>runtime</scope>
</dependency>
</dependencies>
......@@ -103,32 +128,87 @@
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>3.0.3</version>
<version>${karaf.version}</version>
<extensions>true</extensions>
<configuration>
<ignoreDependencyFlag>true</ignoreDependencyFlag>
<addTransitiveFeatures>true</addTransitiveFeatures>
<includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
<archiveZip>false</archiveZip>
<!-- no startupFeatures -->
<bootFeatures>
<feature>standard</feature>
<feature>config</feature>
<feature>management</feature>
<feature>cxf</feature>
<feature>obr</feature>
<feature>config</feature>
<feature>ssh</feature>
<feature>activemq-broker</feature>
<feature>camel</feature>
<feature>camel-core</feature>
<feature>camel-cxf</feature>
<feature>camel-blueprint</feature>
<feature>camel-flatpack</feature>
<feature>camel-jaxb</feature>
<feature>camel-jms</feature>
<feature>camel-saxon</feature>
<feature>camel-weblab</feature>
<feature>camel-spring</feature>
<feature>camel-jms</feature>
<feature>camel-weblab</feature>
<feature>camel-xmlsecurity</feature>
<feature>camel-flatpack </feature>
<feature>cxf</feature>
<feature>hawtio-offline</feature>
<feature>ssh</feature>
<feature>weblab-camel-chains</feature>
</bootFeatures>
<installedFeatures>
<feature>activemq-camel</feature>
<feature>activemq-client</feature>
<feature>activemq-web-console</feature>
<feature>aries-annotation</feature>
<feature>blueprint-web</feature>
<feature>camel-base64</feature>
<feature>camel-bean-validator</feature>
<feature>camel-blueprint</feature>
<feature>camel-catalog</feature>
<feature>camel-context</feature>
<feature>camel-csv</feature>
<feature>camel-eventadmin</feature>
<feature>camel-ftp</feature>
<feature>camel-gson</feature>
<feature>camel-groovy</feature>
<feature>camel-http</feature>
<feature>camel-http4</feature>
<feature>camel-jetty</feature>
<feature>camel-jmx</feature>
<feature>camel-mongodb</feature>
<feature>camel-paxlogging</feature>
<feature>camel-quartz2</feature>
<feature>camel-script</feature>
<feature>camel-spring-ws</feature>
<feature>camel-twitter</feature>
<feature>cxf-bindings-soap</feature>
<feature>cxf-core</feature>
<feature>cxf-databinding-jaxb</feature>
<feature>cxf-jaxrs</feature>
<feature>cxf-jaxws</feature>
<feature>cxf-http</feature>
<feature>cxf-wsdl</feature>
<feature>eventadmin</feature>
<feature>framework-security</feature>
<feature>http</feature>
<feature>http-whiteboard</feature>
<feature>jasypt-encryption</feature>
<feature>jetty</feature>
<feature>jms</feature>
<feature>kar</feature>
<feature>package</feature>
<feature>region</feature>
<feature>scheduler</feature>
<feature>scr</feature>
<feature>service-wrapper</feature>
<feature>war</feature>
<feature>webconsole</feature>
<feature>wrapper</feature>
<feature>xml-specs-api</feature>
</installedFeatures>
</configuration>
</plugin>
<plugin>
......@@ -150,11 +230,9 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
# Root logger
log4j.rootLogger=INFO, out, osgi:VmLogAppender
log4j.throwableRenderer=org.apache.log4j.OsgiThrowableRenderer
# CONSOLE appender not used by default
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
# File appender
log4j.appender.out=org.apache.log4j.RollingFileAppender
log4j.appender.out.layout=org.apache.log4j.PatternLayout
log4j.appender.out.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
log4j.appender.out.file=${karaf.home}/log/weblab-distribution.log
log4j.appender.out.append=true
log4j.appender.out.maxFileSize=1MB
log4j.appender.out.maxBackupIndex=10
# Sift appender
log4j.appender.sift=org.apache.log4j.sift.MDCSiftingAppender
log4j.appender.sift.key=bundle.weblab
log4j.appender.sift.default=weblab
log4j.appender.sift.appender=org.apache.log4j.FileAppender
log4j.appender.sift.appender.layout=org.apache.log4j.PatternLayout
log4j.appender.sift.appender.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %m%n
log4j.appender.sift.appender.file=${karaf.data}/log/$\\{bundle.name\\}.log
log4j.appender.sift.appender.append=true
#
# The properties defined in this file will be made available through system
# properties at the very beginning of the FAS boot process.
#
# Log level when the pax-logging service is not available
# This level will only be used while the pax-logging service bundle
# is not fully available.
# To change log levels, please refer to the org.ops4j.pax.logging.cfg file
# instead.
org.ops4j.pax.logging.DefaultServiceLog.level=ERROR
#
# Name of this custom instance.
#
karaf.name=weblab
#
# Default repository where bundles will be loaded from before using
# other maven repositories. For the full Maven configuration, see the
# org.ops4j.pax.url.mvn.cfg file.
#
karaf.default.repository=system
#
# Location of a shell script that will be run when starting a shell
# session. This script can be used to create aliases and define
# additional commands.
#
karaf.shell.init.script=${karaf.home}/etc/shell.init.script
#
# Set this empty property to avoid errors when validating xml documents.
#
xml.catalog.files=
#
# Suppress the bell in the console when hitting backspace to many times
# for example
#
jline.nobell=true
#
# Default port for the OSGi HTTP Service
#
org.osgi.service.http.port=8282
#
# Allow usage of ${custom.home} as an alias for ${karaf.home}
#
custom.home=${karaf.home}
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- Relative to karaf folder. Ensure that we do not write/read from ~/.m2/repository -->
<localRepository>local-repository</localRepository>
<offline>true</offline>
</settings>
\ No newline at end of file
org.ops4j.pax.url.mvn.settings=${karaf.home}/etc/karaf_maven_offline_settings.xml
org.ops4j.pax.url.mvn.repositories=file:${karaf.home}/${karaf.default.repository}@snapshots@id=system.repository
\ No newline at end of file
......@@ -4,7 +4,7 @@
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
......
......@@ -4,7 +4,7 @@
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
......
......@@ -4,7 +4,7 @@
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
......
......@@ -4,7 +4,7 @@
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
......
......@@ -4,8 +4,8 @@
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
<version>2.0.3</version>
</parent>
<groupId>org.ow2.weblab.bundle.servers</groupId>
......
......@@ -4,7 +4,7 @@
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
......
......@@ -5,7 +5,7 @@
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
......
......@@ -4,7 +4,7 @@
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
......
......@@ -4,7 +4,7 @@
<parent>
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
......
......@@ -3,7 +3,7 @@
<groupId>org.ow2.weblab.bundle</groupId>
<artifactId>parent</artifactId>
<version>2.0.3</version>
<version>2.0.4-SNAPSHOT</version>
<packaging>pom</packaging>
......@@ -62,8 +62,8 @@
<!-- OSGi features versions -->
<karaf.version>3.0.3</karaf.version>
<camel.version>2.15.1</camel.version>
<activemq.version>5.11.1</activemq.version>
<hawtio.version>1.4.47</hawtio.version>
<activemq.version>5.11.3</activemq.version>
<hawtio.version>1.4.50</hawtio.version>
<!-- Common dependencies for tomcat -->
<cxf.version>3.1.2</cxf.version>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment