|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<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"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + |
| 5 | + <parent> |
| 6 | + <groupId>org.aksw.sparqlify</groupId> |
| 7 | + <artifactId>sparqlify-parent</artifactId> |
| 8 | + <version>0.6.5-SNAPSHOT</version> |
| 9 | + </parent> |
| 10 | + |
| 11 | + <artifactId>sparqlify-debian-tomcat-common</artifactId> |
| 12 | + <packaging>jar</packaging> |
| 13 | + |
| 14 | + |
| 15 | + <name>Sparqlify - Debian Packaging - Tomcat Common</name> |
| 16 | + |
| 17 | + |
| 18 | + <properties> |
| 19 | + <deb.packageName>sparqlify-tomcat-common</deb.packageName> |
| 20 | + <tomcat.context.name>sparqlify</tomcat.context.name> |
| 21 | + </properties> |
| 22 | + |
| 23 | + <profiles> |
| 24 | + <profile> |
| 25 | + <id>tomcat</id> |
| 26 | + <activation> |
| 27 | + <activeByDefault>true</activeByDefault> |
| 28 | + </activation> |
| 29 | + <properties> |
| 30 | + <project.description>A web application for working with SPARQL accessible data.</project.description> |
| 31 | + </properties> |
| 32 | + </profile> |
| 33 | + <profile> |
| 34 | + <id>tomcat-lod2</id> |
| 35 | + <properties> |
| 36 | +<project.description>A web application for working with SPARQL accessible data. |
| 37 | + . |
| 38 | + LOD2 is a large-scale integrating project co-funded by the European |
| 39 | + Commission within the FP7 Information and Communication Technologies |
| 40 | + Work Programme (Grant Agreement No. 257943). Commencing in September |
| 41 | + 2010, this 4-year project comprises leading Linked Open Data technology |
| 42 | + researchers, companies, and service providers from across 7 European |
| 43 | + countries and is coordinated by the AKSW research group at the |
| 44 | + University of Leipzig.</project.description> |
| 45 | + </properties> |
| 46 | + </profile> |
| 47 | + </profiles> |
| 48 | + |
| 49 | + <description>${project.description}</description> |
| 50 | + |
| 51 | + <build> |
| 52 | + <plugins> |
| 53 | + <plugin> |
| 54 | + <groupId>org.apache.maven.plugins</groupId> |
| 55 | + <artifactId>maven-war-plugin</artifactId> |
| 56 | + <version>2.3</version> |
| 57 | + <configuration> |
| 58 | + <failOnMissingWebXml>false</failOnMissingWebXml> |
| 59 | + </configuration> |
| 60 | + </plugin> |
| 61 | + |
| 62 | + |
| 63 | + <plugin> |
| 64 | + <!-- This plugin's configuration must come *before* the Debian Maven |
| 65 | + Plugin. --> |
| 66 | + <artifactId>maven-resources-plugin</artifactId> |
| 67 | + <version>2.4</version> |
| 68 | + <executions> |
| 69 | + <execution> |
| 70 | + <id>copy-deb-resources</id> |
| 71 | + <phase>process-resources</phase> |
| 72 | + <goals> |
| 73 | + <goal>copy-resources</goal> |
| 74 | + </goals> |
| 75 | + <configuration> |
| 76 | + <overwrite>true</overwrite> |
| 77 | + <!-- <includeEmptyDirs>true</includeEmptyDirs> --> |
| 78 | + <outputDirectory>${project.build.directory}/deb</outputDirectory> |
| 79 | + <resources> |
| 80 | + <resource> |
| 81 | + <directory>${basedir}/src/deb/resources</directory> |
| 82 | + <!-- Uncomment the following line to enable Velocity filtering. --> |
| 83 | + <!-- <filtering>true</filtering> --> |
| 84 | + </resource> |
| 85 | + </resources> |
| 86 | + </configuration> |
| 87 | + </execution> |
| 88 | + </executions> |
| 89 | + </plugin> |
| 90 | + |
| 91 | + |
| 92 | + <plugin> |
| 93 | + <!-- This plugin's configuration must come *after* the Maven Resources |
| 94 | + Plugin, and *before* the Debian Maven Plugin. --> |
| 95 | + <groupId>org.apache.maven.plugins</groupId> |
| 96 | + <artifactId>maven-antrun-plugin</artifactId> |
| 97 | + <version>1.6</version> |
| 98 | + <executions> |
| 99 | + |
| 100 | + |
| 101 | + <execution> |
| 102 | + <id>create-symlinks</id> |
| 103 | + <phase>package</phase> |
| 104 | + <configuration> |
| 105 | + <target> |
| 106 | + <mkdir dir="${project.build.directory}/deb/usr/share/lib/${deb.packageName}/" /> |
| 107 | + |
| 108 | +<!-- ${project.packaging} --> |
| 109 | + <copy |
| 110 | + file="${project.build.directory}/${project.build.finalName}.${project.packaging}" |
| 111 | + tofile="${project.build.directory}/deb/usr/share/lib/${deb.packageName}/${project.build.finalName}.war" /> |
| 112 | + |
| 113 | + </target> |
| 114 | + </configuration> |
| 115 | + <goals> |
| 116 | + <goal>run</goal> |
| 117 | + </goals> |
| 118 | + </execution> |
| 119 | + |
| 120 | + |
| 121 | + <!-- <execution> --> |
| 122 | + <!-- <id>merge-control</id> --> |
| 123 | + <!-- <phase>package</phase> --> |
| 124 | + <!-- <configuration> --> |
| 125 | + <!-- <target> --> |
| 126 | + <!-- <exec dir="${basedir}/src/deb/bin" executable="${basedir}/src/deb/bin/merge-control-file.sh" --> |
| 127 | + <!-- failonerror="true"> --> |
| 128 | + <!-- </exec> --> |
| 129 | + <!-- </target> --> |
| 130 | + <!-- </configuration> --> |
| 131 | + <!-- <goals> --> |
| 132 | + <!-- <goal>run</goal> --> |
| 133 | + <!-- </goals> --> |
| 134 | + <!-- </execution> --> |
| 135 | + |
| 136 | + <execution> |
| 137 | + <id>fix-permissions</id> |
| 138 | + <phase>package</phase> |
| 139 | + <configuration> |
| 140 | + <target> |
| 141 | + <chmod perm="ugo+x"> |
| 142 | + <fileset dir="${project.build.directory}/deb"> |
| 143 | + <include name="**/bin/**" /> |
| 144 | + <include name="**/sbin/**" /> |
| 145 | + <include name="DEBIAN/post*" /> |
| 146 | + <include name="DEBIAN/pre*" /> |
| 147 | + <include name="DEBIAN/rules" /> |
| 148 | + <include name="DEBIAN/config" /> |
| 149 | + </fileset> |
| 150 | + </chmod> |
| 151 | + </target> |
| 152 | + </configuration> |
| 153 | + <goals> |
| 154 | + <goal>run</goal> |
| 155 | + </goals> |
| 156 | + </execution> |
| 157 | + |
| 158 | + <!-- A hacky execution for making the DEBIAN directory lower case --> |
| 159 | + <!-- NOTE The maven plugin creates a deb, so this is fine at this stage, --> |
| 160 | + <!-- Renaming to lower case is done in the continuous integration server --> |
| 161 | + <!-- <execution> --> |
| 162 | + <!-- <phase>verify</phase> --> |
| 163 | + <!-- <goals> --> |
| 164 | + <!-- <goal>run</goal> --> |
| 165 | + <!-- </goals> --> |
| 166 | + <!-- <configuration> --> |
| 167 | + <!-- <tasks> --> |
| 168 | + <!-- <copy todir="${project.build.directory}/deb/debian"> --> |
| 169 | + <!-- <fileset dir="${project.build.directory}/deb/DEBIAN"> --> |
| 170 | + <!-- <include name="**" /> --> |
| 171 | + <!-- </fileset> --> |
| 172 | + <!-- </copy> --> |
| 173 | + <!-- <delete dir="${project.build.directory}/deb/DEBIAN" /> --> |
| 174 | + <!-- </tasks> --> |
| 175 | + <!-- </configuration> --> |
| 176 | + <!-- </execution> --> |
| 177 | + </executions> |
| 178 | + </plugin> |
| 179 | + |
| 180 | + <plugin> |
| 181 | + <groupId>net.sf.debian-maven</groupId> |
| 182 | + <artifactId>debian-maven-plugin</artifactId> |
| 183 | + <version>1.0.5</version> |
| 184 | + <configuration> |
| 185 | + <packageName>${deb.packageName}</packageName> |
| 186 | + <packagePriority>extra</packagePriority> |
| 187 | + <packageSection>web</packageSection> |
| 188 | + <packageDependencies> |
| 189 | + <packageDependency>dbconfig-common</packageDependency> |
| 190 | + <packageDependency>xsltproc</packageDependency> |
| 191 | + <packageDependency>postgresql</packageDependency> |
| 192 | + </packageDependencies> |
| 193 | + <maintainerName>${project.parent.developers[0].name}</maintainerName> |
| 194 | + <maintainerEmail>${project.parent.developers[0].email}</maintainerEmail> |
| 195 | + <!-- <packageName>my-package</packageName> <packageVersion>1.0.0</packageVersion> |
| 196 | + ... --> |
| 197 | + </configuration> |
| 198 | + </plugin> |
| 199 | + |
| 200 | + |
| 201 | + </plugins> |
| 202 | + </build> |
| 203 | + |
| 204 | + |
| 205 | + <dependencies> |
| 206 | + <dependency> |
| 207 | + <groupId>org.aksw.sparqlify</groupId> |
| 208 | + <artifactId>sparqlify-web-admin-server</artifactId> |
| 209 | + <type>war</type> |
| 210 | + </dependency> |
| 211 | + </dependencies> |
| 212 | +</project> |
| 213 | + |
0 commit comments