pom.xml 6.85 KB
Newer Older
1
<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">
2
3
4
5
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>de.langzeitarchivierung.kolibri</groupId>
		<artifactId>kolibri</artifactId>
group_2006_bot's avatar
10.3.0    
group_2006_bot committed
6
		<version>10.3.0</version>
7
8
9
10
11
	</parent>
	<artifactId>kolibri-dhpublish-service</artifactId>
	<name>koLibRI :: DARIAHDE :: Publish Service</name>
	<packaging>war</packaging>
	<organization>
12
		<name>SUB Göttingen</name>
Stefan Funk's avatar
Stefan Funk committed
13
		<url>https://sub.uni-goettingen.de</url>
14
15
16
17
18
19
20
21
22
23
24
25
	</organization>
	<developers>
		<developer>
			<id>fu</id>
			<name>Stefan E. Funk</name>
			<email>funk@sub.uni-goettingen.de</email>
		</developer>
	</developers>
	<dependencies>
		<dependency>
			<groupId>de.langzeitarchivierung.kolibri</groupId>
			<artifactId>kolibri-publish-service</artifactId>
26
			<version>${project.version}</version>
27
28
29
30
		</dependency>
		<dependency>
			<groupId>de.langzeitarchivierung.kolibri</groupId>
			<artifactId>kolibri-publish-api</artifactId>
31
			<version>${project.version}</version>
32
		</dependency>
33
34
35
		<dependency>
			<groupId>info.textgrid.middleware</groupId>
			<artifactId>dhcrud-api</artifactId>
36
			<version>${crud.version}</version>
37
		</dependency>
38
39
		<dependency>
			<groupId>info.textgrid.middleware</groupId>
Stefan Funk's avatar
Stefan Funk committed
40
41
42
43
44
45
46
			<artifactId>rdfutils</artifactId>
			<version>${common.version}</version>
		</dependency>
		<dependency>
			<groupId>info.textgrid.middleware</groupId>
			<artifactId>dariah-storage-client</artifactId>
			<version>${common.version}</version>
47
		</dependency>
Stefan Funk's avatar
Stefan Funk committed
48
49
		<dependency>
			<groupId>info.textgrid.middleware</groupId>
50
			<artifactId>pid-api</artifactId>
51
			<version>${pid.version}</version>
Stefan Funk's avatar
Stefan Funk committed
52
		</dependency>
53
54
55
56
57
58
59
60
61
62
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-rs-client</artifactId>
			<version>${cxf.version}</version>
		</dependency>
		<dependency>
			<groupId>javax.mail</groupId>
			<artifactId>mail</artifactId>
			<version>${javax.mail.version}</version>
		</dependency>
63
64
65
66
67
		<dependency>
			<groupId>com.fasterxml.jackson.jaxrs</groupId>
			<artifactId>jackson-jaxrs-json-provider</artifactId>
			<version>${jackson.version}</version>
		</dependency>
68
69
70
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-core</artifactId>
71
			<version>${jackson.version}</version>
72
		</dependency>
73
74
75
76
77
		<dependency>
			<groupId>org.apache.jena</groupId>
			<artifactId>jena-core</artifactId>
			<version>${jena.version}</version>
		</dependency>
Stefan Funk's avatar
Stefan Funk committed
78
79
80
81
82
		<dependency>
			<groupId>redis.clients</groupId>
			<artifactId>jedis</artifactId>
			<version>${jedis.version}</version>
		</dependency>
83
84
85
86
87
		<dependency>
			<groupId>com.timgroup</groupId>
			<artifactId>java-statsd-client</artifactId>
			<version>${java-statsd-client.version}</version>
		</dependency>
Stefan Funk's avatar
Stefan Funk committed
88
89
90
91
92
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-web</artifactId>
			<version>${spring.version}</version>
		</dependency>
Stefan Funk's avatar
Stefan Funk committed
93
94
95
96
97
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</artifactId>
			<version>${spring.version}</version>
		</dependency>
98
99
100
101
102
		<dependency>
			<groupId>net.jodah</groupId>
			<artifactId>failsafe</artifactId>
			<version>${failsafe.version}</version>
		</dependency>
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>${log4j.version}</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>${junit.version}</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<build>
		<defaultGoal>package</defaultGoal>
		<finalName>dhpublish</finalName>
		<plugins>
Stefan Funk's avatar
Stefan Funk committed
119
120
121
122
123
124
125
126
127
			<!-- Do not deploy WAR and DEB files to the Nexus repository -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
				<version>${maven-deploy-plugin.version}</version>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
128
129
130
131
132
133
134
135
136
137
138
139
140
141
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>${maven-antrun-plugin.version}</version>
				<executions>
					<execution>
						<id>create-service-version-class</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<tstamp>
142
									<format property="BUILDDATE" pattern="yyyyMMddHHmm" />
143
								</tstamp>
144
								<echo file="./src/main/java/de/langzeitarchivierung/kolibri/DHPublishServiceVersion.java">
145
146
147
148
149
150
151
152
									package de.langzeitarchivierung.kolibri;
									public class
									DHPublishServiceVersion {
									public final static String
									VERSION =
									"${project.version}";
									public final static String
									BUILDDATE =
153
									"${BUILDDATE}";
154
155
156
157
158
159
160
161
162
163
164
165
166
									public final static String BUILDNAME
									=
									"${kolibri.buildname}";
									public final static String
									SERVICENAME
									=
									"${project.artifactId}";
									}
								</echo>
							</tasks>
						</configuration>
					</execution>
				</executions>
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
			</plugin>
			<plugin>
				<groupId>org.apache.cxf</groupId>
				<artifactId>cxf-java2wadl-plugin</artifactId>
				<version>${cxf.version}</version>
				<executions>
					<execution>
						<id>parsejavadoc</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>parsejavadoc</goal>
						</goals>
					</execution>
					<execution>
						<id>process-classes</id>
						<phase>process-classes</phase>
						<goals>
							<goal>java2wadl</goal>
						</goals>
						<configuration>
							<classResourceNames>
								<classResourceName>de.langzeitarchivierung.kolibri.webservice.dariahde.publish.DHPublishServiceImpl</classResourceName>
							</classResourceNames>
							<docProvider>org.apache.cxf.maven_plugin.javatowadl.ResourceMapJavaDocProvider</docProvider>
							<attachWadl>true</attachWadl>
						</configuration>
					</execution>
				</executions>
195
196
197
			</plugin>
		</plugins>
	</build>
198
199
200
201
202
203
204
	<profiles>
		<profile>
			<id>dhrep.deb</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.vafer</groupId>
Stefan Funk's avatar
Stefan Funk committed
205
206
						<artifactId>jdeb</artifactId>
						<version>${jdeb.version}</version>
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
						<executions>
							<execution>
								<phase>package</phase>
								<goals>
									<goal>jdeb</goal>
								</goals>
								<configuration>
									<snapshotExpand>true</snapshotExpand>
									<dataSet>
										<data>
											<type>directory</type>
											<src>${project.build.directory}/${project.build.finalName}</src>
											<mapper>
												<type>perm</type>
												<prefix>/var/dhrep/webapps/${project.build.finalName}</prefix>
												<user>root</user>
												<group>tomcat7</group>
												<filemode>755</filemode>
											</mapper>
										</data>
									</dataSet>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
Stefan Funk's avatar
Stefan Funk committed
236
</project>