<?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/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>org.aksw.sparqlify</groupId>
		<artifactId>sparqlify-parent</artifactId>
		<version>0.6.5</version>
	</parent>

	<artifactId>sparqlify-debian-tomcat7</artifactId>
	<packaging>jar</packaging>


	<name>Sparqlify - Debian Packaging - Tomcat7</name>


	<properties>
		<deb.tomcat7.packageName>sparqlify-tomcat7</deb.tomcat7.packageName>
<!-- 		<tomcat.context.name>sparqlify</tomcat.context.name> -->
	</properties>

	<profiles>
		<profile>
			<id>tomcat</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<project.description>A web application for working with SPARQL accessible data.</project.description>
			</properties>
		</profile>
		<profile>
			<id>tomcat-lod2</id>
			<properties>
<project.description>A web application for working with SPARQL accessible data.
 .
 LOD2 is a large-scale integrating project co-funded by the European
 Commission within the FP7 Information and Communication Technologies
 Work Programme (Grant Agreement No. 257943). Commencing in September
 2010, this 4-year project comprises leading Linked Open Data technology
 researchers, companies, and service providers from across 7 European
 countries and is coordinated by the AKSW research group at the
 University of Leipzig.</project.description>
			</properties>
		</profile>
	</profiles>

	<description>${project.description}</description>


	<build>
		<plugins>
			<plugin>
				<artifactId>jdeb</artifactId>
				<groupId>org.vafer</groupId>
				<version>1.0</version>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>jdeb</goal>
						</goals>
						<configuration>
							<deb>${project.build.directory}/${deb.tomcat7.packageName}_[[version]]_all.deb</deb>
							<timestamped>true</timestamped>
							<dataSet>
			
								<data>
									<type>directory</type>
									<src>${basedir}/src/deb/resources</src>
								</data>
			
<!-- 								<data> -->
<!-- 									<type>file</type> -->
<!-- 									<src>${project.build.directory}/${project.build.finalName}.war</src> -->
<!-- 									<mapper> -->
<!-- 										<type>perm</type> -->
<!-- 										<prefix>/usr/share/lib/${deb.tomcatCommon.name}</prefix> -->
<!-- 										<user>loader</user> -->
<!-- 										<group>loader</group> -->
<!-- 									</mapper> -->
<!-- 								</data> -->

<!-- 								<data> -->
<!-- 									<type>link</type> -->
<!-- 									<symlink>true</symlink> -->
<!-- 									<linkName>/var/lib/tomcat7/web${deb.tomcatCommon.name}/${deb.tomcatCommon.name}.war</linkName> -->
<!-- 									<linkTarget>/usr/share/lib/${deb.tomcatCommon.name}/${project.build.finalName}.war</linkTarget> -->
<!-- 								</data> -->

							</dataSet>
			
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

</project>

