source: SRUAggregator/trunk/pom.xml @ 6306

Last change on this file since 6306 was 6306, checked in by emanuel.dima@uni-tuebingen.de, 9 years ago
  1. beta-51: improved embedded view and responsive design
File size: 14.2 KB
Line 
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        <prerequisites>
5                <maven>3.0.0</maven>
6        </prerequisites>
7
8        <groupId>eu.clarin.sru.fcs</groupId>
9        <artifactId>aggregator</artifactId>
10        <version>2.0.0-beta-51</version>
11        <name>FCS Aggregator</name>
12
13        <properties>
14                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15                <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
16        <serviceUser>aggregator</serviceUser>
17        <serviceGroup>aggregator</serviceGroup>
18        </properties>
19
20        <repositories>
21                <repository>
22                        <id>clarin</id>
23                        <url>http://catalog.clarin.eu/ds/nexus/content/repositories/Clarin/</url>
24                </repository>
25                <repository>
26                        <id>sonatype-nexus-snapshots</id>
27                        <name>Sonatype Nexus Snapshots</name>
28                        <url>http://oss.sonatype.org/content/repositories/snapshots</url>
29                </repository>
30        </repositories>
31
32        <dependencies>
33                <dependency>
34                        <groupId>io.dropwizard</groupId>
35                        <artifactId>dropwizard-core</artifactId>
36                        <version>0.7.1</version>
37                </dependency>
38                <dependency>
39                        <groupId>io.dropwizard</groupId>
40                        <artifactId>dropwizard-assets</artifactId>
41                        <version>0.7.1</version>
42                </dependency>
43                <dependency>
44                        <groupId>io.dropwizard</groupId>
45                        <artifactId>dropwizard-spdy</artifactId>
46                        <version>0.7.1</version>
47                </dependency>
48                <dependency>
49                        <groupId>io.dropwizard</groupId>
50                        <artifactId>dropwizard-testing</artifactId>
51                        <version>0.7.1</version>
52                        <scope>test</scope>
53                </dependency>
54
55                <dependency>
56                        <groupId>eu.clarin.sru</groupId>
57                        <artifactId>sru-client</artifactId>
58                        <version>0.9.5</version>
59                        <exclusions>
60                                <exclusion>
61                                        <groupId>org.slf4j</groupId>
62                                        <artifactId>slf4j-api</artifactId>
63                                </exclusion>
64                                <exclusion>
65                                        <groupId>commons-codec</groupId>
66                                        <artifactId>commons-codec</artifactId>
67                                </exclusion>
68                        </exclusions>
69                </dependency>
70
71                <dependency>
72                        <groupId>eu.clarin.weblicht</groupId>
73                        <artifactId>wlfxb</artifactId>
74                        <version>1.3.1</version>
75                </dependency>
76                <dependency>
77                        <groupId>eu.clarin.weblicht</groupId>
78                        <artifactId>connectors</artifactId>
79                        <version>1.0.6</version>
80                        <exclusions>
81                                <exclusion>
82                                        <groupId>com.sun.jersey</groupId>
83                                        <artifactId>jersey-client</artifactId>
84                                </exclusion>
85                        </exclusions>
86                </dependency>
87                <dependency>
88                        <groupId>eu.clarin.weblicht</groupId>
89                        <artifactId>bindings</artifactId>
90                        <version>1.0.4</version>
91                </dependency>
92
93                <dependency>
94                    <groupId>com.optimaize.languagedetector</groupId>
95                    <artifactId>language-detector</artifactId>
96                        <version>0.4</version>
97                        <exclusions>
98                                <exclusion>
99                                        <groupId>com.google.guava</groupId>
100                                        <artifactId>guava</artifactId>
101                                </exclusion>
102                        </exclusions>
103                </dependency>
104
105                <dependency>
106                        <groupId>org.apache.poi</groupId>
107                        <artifactId>poi-ooxml</artifactId>
108                        <version>3.11-beta2</version>
109                </dependency>
110                <dependency>
111                        <groupId>com.sun.jersey</groupId>
112                        <artifactId>jersey-client</artifactId>
113                        <version>1.18.1</version>
114                        <type>jar</type>
115                </dependency>
116        </dependencies>
117
118        <build>
119                <plugins>
120                        <plugin>
121                                <groupId>org.apache.maven.plugins</groupId>
122                                <artifactId>maven-enforcer-plugin</artifactId>
123                                <version>1.3.1</version>
124                                <executions>
125                                        <execution>
126                                                <id>enforce</id>
127                                                <configuration>
128                                                        <rules>
129                                                                <DependencyConvergence />
130                                                        </rules>
131                                                </configuration>
132                                                <goals>
133                                                        <goal>enforce</goal>
134                                                </goals>
135                                        </execution>
136                                </executions>
137                        </plugin>
138                        <plugin>
139                                <groupId>org.apache.maven.plugins</groupId>
140                                <artifactId>maven-compiler-plugin</artifactId>
141                                <version>3.2</version>
142                                <configuration>
143                                        <source>1.7</source>
144                                        <target>1.7</target>
145                                        <encoding>UTF-8</encoding>
146                                </configuration>
147                        </plugin>
148                        <plugin>
149                                <groupId>org.apache.maven.plugins</groupId>
150                                <artifactId>maven-jar-plugin</artifactId>
151                                <version>2.5</version>
152                                <configuration>
153                                        <archive>
154                                                <manifest>
155                                                        <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
156                                                </manifest>
157                                        </archive>
158                                </configuration>
159                        </plugin>
160                        <plugin>
161                                <groupId>org.apache.maven.plugins</groupId>
162                                <artifactId>maven-shade-plugin</artifactId>
163                                <version>2.2</version>
164                                <configuration>
165                                        <createDependencyReducedPom>true</createDependencyReducedPom>
166                                        <filters>
167                                                <filter>
168                                                        <artifact>*:*</artifact>
169                                                        <excludes>
170                                                                <exclude>META-INF/*.SF</exclude>
171                                                                <exclude>META-INF/*.DSA</exclude>
172                                                                <exclude>META-INF/*.RSA</exclude>
173                                                        </excludes>
174                                                </filter>
175                                        </filters>
176                                </configuration>
177                                <executions>
178                                        <execution>
179                                                <phase>package</phase>
180                                                <goals>
181                                                        <goal>shade</goal>
182                                                </goals>
183                                                <configuration>
184                                                        <transformers>
185                                                                <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
186                                                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
187                                                                        <mainClass>eu.clarin.sru.fcs.aggregator.app.Aggregator</mainClass>
188                                                                </transformer>
189                                                        </transformers>
190                                                </configuration>
191                                        </execution>
192                                </executions>
193                        </plugin>
194            <plugin>
195                <groupId>org.codehaus.mojo</groupId>
196                <artifactId>rpm-maven-plugin</artifactId>
197                <version>2.1.2</version>
198                <extensions>true</extensions>
199                <configuration>
200                    <needarch>noarch</needarch>
201                    <targetOS>linux</targetOS>
202                    <targetVendor>pc</targetVendor>
203                    <group>Applications/System</group>
204                    <name>${project.artifactId}</name>
205                    <release>${buildNumber}</release>
206                    <mappings>
207                        <mapping>
208                            <directory>/usr/share/${project.artifactId}/</directory>
209                            <sources>
210                                <source>
211                                    <location>${project.build.directory}/${project.artifactId}-${project.version}.jar</location>
212                                    <destination>${project.artifactId}.jar</destination>
213                                </source>
214                            </sources>
215                        </mapping>
216                        <mapping>
217                            <directory>/var/lib/${project.artifactId}/</directory>
218                            <filemode>700</filemode>
219                            <username>${serviceUser}</username>
220                            <groupname>${serviceGroup}</groupname>
221                        </mapping>
222                        <mapping>
223                            <directory>/var/log/${project.artifactId}/</directory>
224                            <filemode>700</filemode>
225                            <username>${serviceUser}</username>
226                            <groupname>${serviceGroup}</groupname>
227                        </mapping>
228                        <mapping>
229                            <directory>/usr/bin</directory>
230                            <directoryIncluded>false</directoryIncluded>
231                            <filemode>755</filemode>
232                            <username>root</username>
233                            <groupname>root</groupname>
234                            <sources>
235                                <source>
236                                    <location>src/assembly/bin/service.sh</location>
237                                    <destination>${project.artifactId}</destination>
238                                </source>
239                            </sources>
240                        </mapping>
241                        <mapping>
242                            <directory>/etc/init.d</directory>
243                            <directoryIncluded>false</directoryIncluded>
244                            <filemode>755</filemode>
245                            <username>root</username>
246                            <groupname>root</groupname>
247                            <sources>
248                                <source>
249                                    <location>src/assembly/init-scripts/redhat</location>
250                                    <destination>${project.artifactId}</destination>
251                                </source>
252                            </sources>
253                        </mapping>
254                        <mapping>
255                            <directory>/etc/default</directory>
256                            <directoryIncluded>false</directoryIncluded>
257                            <configuration>true</configuration>
258                            <filemode>755</filemode>
259                            <username>root</username>
260                            <groupname>root</groupname>
261                            <sources>
262                                <source>
263                                    <location>src/assembly/conf/etc.default</location>
264                                    <destination>${project.artifactId}</destination>
265                                </source>
266                            </sources>
267                        </mapping>
268                        <mapping>
269                            <directory>/etc/clarind</directory>
270                            <directoryIncluded>false</directoryIncluded>
271                            <configuration>true</configuration>
272                            <filemode>644</filemode>
273                            <username>root</username>
274                            <groupname>root</groupname>
275                            <sources>
276                                <source>
277                                    <location>src/assembly/conf/${project.artifactId}.yaml</location>
278                                    <destination>${project.artifactId}.yaml</destination>
279                                </source>
280                            </sources>
281                        </mapping>
282                    </mappings>
283                    <preinstallScriptlet>
284                        <script>
285                            /usr/bin/getent group ${serviceGroup} &gt; /dev/null || /usr/sbin/groupadd ${project.artifactId}
286                            /usr/bin/getent passwd ${serviceUser} &gt; /dev/null || /usr/sbin/useradd -r -d /var/lib/${project.artifactId} -m -g ${serviceGroup} ${serviceUser}
287                        </script>
288                    </preinstallScriptlet>
289                    <postinstallScriptlet>
290                        <script>
291                            chkconfig --add ${project.artifactId};
292                            chkconfig ${project.artifactId} on;
293                            if [ $1 -eq 0 ]; then
294                                /sbin/service ${project.artifactId} start
295                            elif [ $1 -ge 1 ]; then
296                                /sbin/service ${project.artifactId} restart
297                            fi
298                        </script>
299                    </postinstallScriptlet>
300                    <preremoveScriptlet>
301                        <script>
302                            if [ $1 -eq 0 ] ; then
303                            /sbin/service ${project.artifactId} stop;chkconfig --del ${project.artifactId}
304                            fi
305                        </script>
306                    </preremoveScriptlet>
307                </configuration>
308            </plugin>
309            <plugin>
310                <artifactId>jdeb</artifactId>
311                <groupId>org.vafer</groupId>
312                <version>1.3</version>
313                    <configuration>
314                        <dataSet>
315                            <data>
316                              <src>${project.build.directory}/${project.artifactId}-${project.version}.jar</src>
317                              <type>file</type>
318                              <dst>/usr/share/${project.artifactId}/${project.artifactId}.jar</dst>
319                            </data>
320                            <data>
321                                <src>${project.basedir}/src/assembly/bin/service.sh</src>
322                              <dst>/usr/bin/${project.artifactId}</dst>
323                              <type>file</type>
324                              <mapper>
325                                    <type>perm</type>
326                                    <filemode>755</filemode>
327                              </mapper>
328                            </data>
329                            <data>
330                              <src>${project.basedir}/src/assembly/init-scripts/ubuntu</src>
331                              <dst>/etc/init.d/${project.artifactId}</dst>
332                              <type>file</type>
333                              <mapper>
334                                    <type>perm</type>
335                                    <filemode>755</filemode>
336                              </mapper>
337                            </data>
338                            <data>
339                                <src>${project.basedir}/src/assembly/conf/${project.artifactId}.yaml</src>
340                              <dst>/etc/clarind/${project.artifactId}.yaml</dst>
341                              <type>file</type>
342                              <conffile>true</conffile>
343                            </data>
344                            <data>
345                              <src>${project.basedir}/src/assembly/conf/etc.default</src>
346                              <dst>/etc/default/${project.artifactId}</dst>
347                              <type>file</type>
348                              <conffile>true</conffile>
349                            </data>
350                            <data>
351                                <type>template</type>
352                                <paths>
353                                    <path>var/lib/${project.artifactId}</path>
354                                    <path>var/log/${project.artifactId}</path>
355                                </paths>
356                                <mapper>
357                                    <type>perm</type>
358                                    <user>${project.artifactId}</user>
359                                    <group>${project.artifactId}</group>
360                                </mapper>
361                            </data>
362                        </dataSet>
363                    </configuration>
364            </plugin>
365                </plugins>
366        </build>
367</project>
Note: See TracBrowser for help on using the repository browser.