blob: d507ff5a8239473cc569101ae8f42fcc6b6dc1df [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" standalone="no"?><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.clerezza</groupId>
<artifactId>parent</artifactId>
<version>0.2-incubating-SNAPSHOT</version>
</parent>
<groupId>org.apache.clerezza</groupId>
<artifactId>platform.launcher.tdb</artifactId>
<version>0.5-incubating-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Clerezza - Platform Launcher with Jena TDB</name>
<description>TDB variant of standalone java application for launching the clerezza.org platform. It is also a bundle, but there is no OSGi container known to support this (we are working on it :-) ).</description>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.xsite</groupId>
<artifactId>xsite-maven-plugin</artifactId>
<configuration>
<sourceDirectoryPath>${basedir}/src/site/xsite</sourceDirectoryPath>
<sitemapPath>content/sitemap.xml</sitemapPath>
<skinPath>templates/skin.html</skinPath>
<outputDirectoryPath>${basedir}/target/site/documentation</outputDirectoryPath>
</configuration>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>inline-jars</id>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeArtifactIds>
platform.launcher.storageless
</includeArtifactIds>
<outputDirectory>target/extracted</outputDirectory>
<includes>**</includes>
<excludes>
META-INF/**,**/com.hp.hpl.jena*
</excludes>
</configuration>
</execution>
<execution>
<goals>
<goal>copy-dependencies</goal>
</goals>
<id>copy-platform-bundles</id>
<configuration>
<outputDirectory>${basedir}/target/bundles/startlevel-3</outputDirectory>
<useRepositoryLayout>true</useRepositoryLayout>
<excludeTransitive>true</excludeTransitive>
<includeScope>runtime</includeScope>
<excludeArtifactIds>slf4j-api</excludeArtifactIds>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>org.apache.clerezza.platform.launcher.Main</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Bundle-Name>Clerezza - Platform Launcher</Bundle-Name>
<Bundle-SymbolicName>org.apache.clerezza.platform.launcher.tdb</Bundle-SymbolicName>
<Bundle-Activator>org.apache.clerezza.platform.launcher.Main</Bundle-Activator>
<Import-Package>org.osgi.framework,org.osgi.service.startlevel</Import-Package>
<Private-Package>*</Private-Package>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>target/extracted/</directory>
<includes>
<include>**</include>
</includes>
</resource>
<resource>
<targetPath>META-INF</targetPath>
<filtering>false</filtering>
<directory>${basedir}</directory>
<includes>
<include>NOTICE.txt</include>
<include>LICENSE.*</include>
</includes>
</resource>
<!-- the exclude rules are here because the maven-dependency-plugin
copies both -SNAPSHOT version as well as the one with the timestamp,
see http://jira.codehaus.org/browse/MDEP-209 -->
<resource>
<targetPath>bundles</targetPath>
<directory>target/bundles</directory>
<excludes>
<exclude>**/*20*.*-*.jar</exclude>
</excludes>
</resource>
</resources>
</build>
<dependencies>
<dependency>
<groupId>org.apache.clerezza</groupId>
<artifactId>platform.launcher.storageless</artifactId>
<scope>provided</scope>
</dependency>
<!-- what makes this variant special -->
<dependency>
<groupId>org.apache.clerezza</groupId>
<artifactId>rdf.jena.tdb.storage</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.clerezza.ext</groupId>
<artifactId>com.hp.hpl.jena.tdb</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>