pom.xml 7.2 KB
Newer Older
Stefan Funk's avatar
Stefan Funk committed
1
2
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
	<modelVersion>4.0.0</modelVersion>
5
6
7
	<parent>
		<groupId>de.langzeitarchivierung.kolibri</groupId>
		<artifactId>kolibri</artifactId>
group_2006_bot's avatar
10.3.0    
group_2006_bot committed
8
		<version>10.3.0</version>
9
	</parent>
Stefan E. Funk's avatar
Stefan E. Funk committed
10
	<artifactId>kolibri-addon-textgrid-import</artifactId>
11
	<name>koLibRI :: TextGrid :: Import Addon</name>
12
	<packaging>jar</packaging>
Stefan Funk's avatar
mc    
Stefan Funk committed
13
	<properties>
Stefan Funk's avatar
Stefan Funk committed
14
		<httpclients.version>2.0.0</httpclients.version>
15
		<saxon.version>9.6.0-4</saxon.version>
Stefan Funk's avatar
mc    
Stefan Funk committed
16
	</properties>
17
	<organization>
18
19
		<name>SUB Göttingen</name>
		<url>https://sub.uni-goettingen.de</url>
20
21
22
	</organization>
	<developers>
		<developer>
Stefan E. Funk's avatar
Stefan E. Funk committed
23
			<id>fu</id>
24
			<name>Stefan E. Funk</name>
25
			<email>funk@sub.uni-goettingen.de</email>
26
27
		</developer>
	</developers>
28
29
30
31
	<dependencies>
		<dependency>
			<groupId>de.langzeitarchivierung.kolibri</groupId>
			<artifactId>kolibri-base</artifactId>
32
			<version>${project.version}</version>
33
			<exclusions>
34
				<!-- Excluded due to problems with the Servlet API! -->
35
36
37
38
39
				<exclusion>
					<groupId>de.unigoettingen.sub.commons</groupId>
					<artifactId>getOPACLib</artifactId>
				</exclusion>
			</exclusions>
40
		</dependency>
41
42
43
		<dependency>
			<groupId>de.langzeitarchivierung.kolibri</groupId>
			<artifactId>kolibri-tgpublish-client</artifactId>
44
			<version>${project.version}</version>
45
		</dependency>
Stefan E. Funk's avatar
mc    
Stefan E. Funk committed
46
47
48
		<dependency>
			<groupId>info.textgrid.middleware</groupId>
			<artifactId>tgcrud-client</artifactId>
Stefan Funk's avatar
Stefan Funk committed
49
			<version>${crud.version}</version>
Stefan E. Funk's avatar
mc    
Stefan E. Funk committed
50
		</dependency>
51
52
53
54
55
		<dependency>
			<groupId>info.textgrid.middleware</groupId>
			<artifactId>tgsearch-client</artifactId>
			<version>${tgsearch.version}</version>
		</dependency>
56
57
		<dependency>
			<groupId>info.textgrid.middleware</groupId>
Stefan Funk's avatar
Stefan Funk committed
58
59
60
61
62
63
64
			<artifactId>ltputils</artifactId>
			<version>${common.version}</version>
		</dependency>
		<dependency>
			<groupId>info.textgrid.middleware</groupId>
			<artifactId>const</artifactId>
			<version>${common.version}</version>
65
		</dependency>
66
		<dependency>
67
68
			<groupId>info.textgrid.middleware.clients</groupId>
			<artifactId>textgrid-clients</artifactId>
Stefan Funk's avatar
Stefan Funk committed
69
			<version>${common.version}</version>
70
		</dependency>
71
72
		<dependency>
			<groupId>info.textgrid.middleware</groupId>
73
74
			<artifactId>pid-api</artifactId>
			<version>${pid.version}</version>
75
		</dependency>
76
77
78
		<dependency>
			<groupId>info.textgrid.utils</groupId>
			<artifactId>link-rewriter-core</artifactId>
Stefan Funk's avatar
Stefan Funk committed
79
			<version>${link-rewriter.version}</version>
80
		</dependency>
81
82
83
		<dependency>
			<groupId>info.textgrid.utils</groupId>
			<artifactId>httpclients</artifactId>
Stefan Funk's avatar
Stefan Funk committed
84
			<version>${httpclients.version}</version>
85
		</dependency>
86
		<dependency>
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf</artifactId>
			<version>${cxf.version}</version>
			<type>pom</type>
		</dependency>
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxrs</artifactId>
			<version>${cxf.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxws</artifactId>
			<version>${cxf.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-transports-http</artifactId>
			<version>${cxf.version}</version>
		</dependency>
107
108
109
110
111
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-rs-client</artifactId>
			<version>${cxf.version}</version>
		</dependency>
112
		<dependency>
113
114
			<groupId>javax.mail</groupId>
			<artifactId>mail</artifactId>
115
			<version>${javax.mail.version}</version>
116
		</dependency>
117
		<!-- Saxon for XSLT 2.0 -->
Stefan Funk's avatar
Stefan Funk committed
118
119
120
		<dependency>
			<groupId>net.sf.saxon</groupId>
			<artifactId>Saxon-HE</artifactId>
121
			<version>${saxon.version}</version>
Stefan Funk's avatar
Stefan Funk committed
122
		</dependency>
123
124
125
126
127
128
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>${junit.version}</version>
			<scope>test</scope>
		</dependency>
129
130
131
132
133
134
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
			<version>${mockito.version}</version>
			<scope>test</scope>
		</dependency>
135
136
137
	</dependencies>
	<build>
		<defaultGoal>package</defaultGoal>
138
		<plugins>
Stefan E. Funk's avatar
Stefan E. Funk committed
139
140
141
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>exec-maven-plugin</artifactId>
142
				<version>${exec-maven-plugin.version}</version>
Stefan E. Funk's avatar
Stefan E. Funk committed
143
144
145
				<executions>
					<execution>
						<goals>
146
							<goal>java</goal>
Stefan E. Funk's avatar
Stefan E. Funk committed
147
148
149
150
151
152
153
						</goals>
					</execution>
				</executions>
				<configuration>
					<mainClass>de.langzeitarchivierung.kolibri.WorkflowTool</mainClass>
				</configuration>
			</plugin>
154
155
156
157
158
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>${maven-antrun-plugin.version}</version>
				<executions>
Stefan Funk's avatar
Stefan Funk committed
159
					<!-- TODO Maybe see common/metadata-core-jaxb for using local XSD for
160
						validating -->
161
					<execution>
162
163
164
165
166
167
168
169
170
171
						<id>create-version-file</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<tstamp>
									<format property="BUILDDATE" pattern="yyyyMMddHHmm" />
								</tstamp>
172
173
174
175
176
177
178
179
180
181
182
183
184
								<echo file="./version.txt">${project.artifactId}-${project.version}
								</echo>
							</tasks>
						</configuration>
					</execution>
					<execution>
						<id>create-linux-go-file</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
Stefan Funk's avatar
Stefan Funk committed
185
								<echo file="./koLiGO.sh">
186
									#!/bin/bash
187
									java \
188
									-Dorg.apache.cxf.stax.maxChildElements=500000 -Xmx2048M \
189
									-Dfile.encoding=UTF-8 -jar kolibri-cli.jar \
190
									-c $1
191
								</echo>
Stefan Funk's avatar
Stefan Funk committed
192
								<chmod file="./koLiGO.sh" perm="a+x" type="both" />
193
194
195
196
							</tasks>
						</configuration>
					</execution>
					<execution>
197
						<id>create-windows-go-file</id>
198
199
200
201
202
203
						<phase>generate-resources</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
Stefan Funk's avatar
Stefan Funk committed
204
								<echo file="./koLiGO.bat">
205
									java ^
206
									-Dorg.apache.cxf.stax.maxChildElements=500000 -Xmx2048M ^
207
									-Dfile.encoding=UTF-8 -jar kolibri-cli.jar ^
208
									-c %1
209
								</echo>
Stefan Funk's avatar
Stefan Funk committed
210
								<chmod file="./koLiGO.bat" perm="a+x" type="both" />
211
212
213
214
215
216
217
218
219
220
221
222
223
							</tasks>
						</configuration>
					</execution>
					<execution>
						<id>move-config-zip</id>
						<phase>package</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<copy file="./target/${project.artifactId}.zip"
									todir="./src/main/resources/" />
224
225
226
227
228
							</tasks>
						</configuration>
					</execution>
				</executions>
			</plugin>
Stefan Funk's avatar
hu.    
Stefan Funk committed
229
230
231
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
232
				<version>${maven-assembly-plugin.version}</version>
Stefan Funk's avatar
hu.    
Stefan Funk committed
233
234
235
236
237
238
239
240
241
242
				<configuration>
					<descriptors>
						<descriptor>./src/main/resources/assembly.xml</descriptor>
					</descriptors>
					<finalName>${project.artifactId}</finalName>
					<appendAssemblyId>false</appendAssemblyId>
				</configuration>
				<executions>
					<execution>
						<id>assemble-config</id>
243
						<phase>prepare-package</phase>
Stefan Funk's avatar
hu.    
Stefan Funk committed
244
245
246
247
248
249
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
250
		</plugins>
251
	</build>
252
</project>