blob: ba18faf318d18c82b78145f150e47a06130c9916 [file] [log] [blame]
margarethaf68daa62017-09-21 02:11:24 +02001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 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 <groupId>de.ids_mannheim.korap</groupId>
5 <artifactId>Kustvakt-full</artifactId>
margaretha51e5e3f2018-10-17 15:10:03 +02006 <version>0.61.3</version>
margarethaf68daa62017-09-21 02:11:24 +02007 <properties>
margaretha2c019fa2018-02-01 19:50:51 +01008 <java.version>1.8</java.version>
margarethaf68daa62017-09-21 02:11:24 +02009 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
margaretha3da7cd32018-10-22 17:42:52 +020010 <spring-framework.version>5.1.1.RELEASE</spring-framework.version>
11 <jetty.version>9.4.12.v20180830</jetty.version>
margarethaf68daa62017-09-21 02:11:24 +020012 <jersey.version>1.19.4</jersey.version>
margaretha3da7cd32018-10-22 17:42:52 +020013 <hibernate.version>5.3.7.Final</hibernate.version>
margarethaf68daa62017-09-21 02:11:24 +020014 </properties>
margaretha34954472018-10-24 20:05:17 +020015 <profiles>
16 <profile>
17 <id>full</id>
18 <activation>
19 <activeByDefault>true</activeByDefault>
20 </activation>
21 <build>
22 <plugins>
23 <plugin>
24 <artifactId>maven-shade-plugin</artifactId>
25 <version>3.1.0</version>
26 <executions>
27 <!-- option 1 -->
28 <execution>
29 <id>full</id>
30 <phase>package</phase>
31 <goals>
32 <goal>shade</goal>
33 </goals>
34 <configuration>
35 <finalName>Kustvakt-full-${project.version}</finalName>
36 <transformers>
37 <transformer
38 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
39 <mainClass>
40 de.ids_mannheim.korap.server.KustvaktServer
41 </mainClass>
42 </transformer>
43 <transformer
44 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
45 <resource>META-INF/spring.handlers
46 </resource>
47 </transformer>
48 <transformer
49 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
50 <resource>META-INF/spring.schemas
51 </resource>
52 </transformer>
53 </transformers>
54 <!-- Additional configuration. apparently there is a securityException -->
55 <filters>
56 <filter>
57 <artifact>*:*</artifact>
58 <excludes>
59 <exclude>META-INF/*.SF</exclude>
60 <exclude>META-INF/*.DSA
61 </exclude>
62 <exclude>META-INF/*.RSA
63 </exclude>
64 </excludes>
65 </filter>
66 </filters>
67 </configuration>
68 </execution>
69 </executions>
70 </plugin>
71 </plugins>
72 </build>
73 </profile>
74 <profile>
75 <id>lite</id>
76 <build>
77 <plugins>
78 <plugin>
79 <artifactId>maven-shade-plugin</artifactId>
80 <version>3.1.0</version>
81 <executions>
82 <execution>
83 <id>lite</id>
84 <phase>package</phase>
85 <goals>
86 <goal>shade</goal>
87 </goals>
88 <configuration>
89 <finalName>
90 Kustvakt-lite-${project.version}
91 </finalName>
92 <transformers>
93 <transformer
94 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
95 <mainClass>
96 de.ids_mannheim.korap.server.KustvaktLiteServer
97 </mainClass>
98 </transformer>
99 <transformer
100 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
101 <resource>META-INF/spring.handlers
102 </resource>
103 </transformer>
104 <transformer
105 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
106 <resource>META-INF/spring.schemas
107 </resource>
108 </transformer>
109 </transformers>
110 <!-- Additional configuration. apparently there is a security exception -->
111 <filters>
112 <filter>
113 <artifact>*:*</artifact>
114 <excludes>
115 <exclude>META-INF/*.SF</exclude>
116 <exclude>META-INF/*.DSA
117 </exclude>
118 <exclude>META-INF/*.RSA
119 </exclude>
120 </excludes>
121 </filter>
122 </filters>
123 </configuration>
124 </execution>
125 </executions>
126 </plugin>
127 </plugins>
128 </build>
129 </profile>
130 </profiles>
margarethaf68daa62017-09-21 02:11:24 +0200131 <build>
margaretha34954472018-10-24 20:05:17 +0200132 <!-- <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering>
133 <includes> <include>**/*.info</include> <include>**/*.xml</include> <include>**/*.conf</include>
134 <include>**/*.kustvakt</include> <include>**/*.properties</include> <include>**/*.sql</include>
135 <include>**/*.vm</include> </includes> </resource> </resources> -->
margarethaf68daa62017-09-21 02:11:24 +0200136 <testResources>
137 <testResource>
138 <directory>src/test/resources</directory>
margarethaf68daa62017-09-21 02:11:24 +0200139 </testResource>
140 <testResource>
141 <directory>src/main/resources</directory>
142 <filtering>true</filtering>
143 <includes>
144 <include>**/*.info</include>
145 <include>**/*.properties</include>
margaretha3da7cd32018-10-22 17:42:52 +0200146 <include>**/*.json</include>
margarethaf68daa62017-09-21 02:11:24 +0200147 </includes>
148 </testResource>
149 </testResources>
150 <plugins>
151 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
152 <plugin>
153 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
154 <artifactId>maven-java-formatter-plugin</artifactId>
155 <version>0.4</version>
156 <configuration>
157 <configFile>${project.basedir}/Format.xml</configFile>
158 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
159 <compilerSource>${java.version}</compilerSource>
160 <compilerCompliance>${java.version}</compilerCompliance>
161 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
162 </configuration>
163 <!-- <executions> <execution> <goals> <goal>format</goal> </goals> </execution>
164 </executions> -->
165 </plugin>
166 <plugin>
167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-compiler-plugin</artifactId>
margarethafc7d7772018-01-16 17:48:17 +0100169 <version>3.7.0</version>
margarethaf68daa62017-09-21 02:11:24 +0200170 <configuration>
171 <compilerVersion>${java.version}</compilerVersion>
172 <source>${java.version}</source>
173 <target>${java.version}</target>
margaretha58e18632018-02-15 13:04:42 +0100174 <!-- <compilerArguments> <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
175 <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
176 </compilerArguments> -->
margaretha9025d642018-01-19 17:35:22 +0100177 <processors>
margarethafc7d7772018-01-16 17:48:17 +0100178 <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
179 <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
margaretha9025d642018-01-19 17:35:22 +0100180 </processors>
margarethaf68daa62017-09-21 02:11:24 +0200181 </configuration>
182 </plugin>
margarethaf68daa62017-09-21 02:11:24 +0200183 <plugin>
184 <groupId>org.apache.maven.plugins</groupId>
185 <artifactId>maven-surefire-plugin</artifactId>
Akron63656052018-11-07 12:20:13 +0100186 <version>2.22.1</version>
margarethaf68daa62017-09-21 02:11:24 +0200187 <configuration>
Akron63656052018-11-07 12:20:13 +0100188 <useSystemClassLoader>false</useSystemClassLoader>
margaretha0a45be12018-07-12 15:06:30 +0200189 <reuseForks>true</reuseForks>
190 <forkCount>1</forkCount>
191 <threadCount>10</threadCount>
margaretha34954472018-10-24 20:05:17 +0200192 <argLine>-Xmx512m -XX:MaxPermSize=256m
margaretha49cb6882018-07-04 04:19:54 +0200193 -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager</argLine>
margarethaf68daa62017-09-21 02:11:24 +0200194 <excludes>
margarethadfecb4b2017-12-12 19:32:30 +0100195 <exclude>de/ids_mannheim/korap/authentication/*.java</exclude>
margaretha49cb6882018-07-04 04:19:54 +0200196 <exclude>de/ids_mannheim/korap/web/controller/TokenExpiryTest.java</exclude>
margaretha1b320452018-08-02 16:56:25 +0200197 <exclude>**/VCReferenceTest.java</exclude>
margarethaf68daa62017-09-21 02:11:24 +0200198 </excludes>
199 <includes>
200 <include>de/ids_mannheim/korap/**/*.java</include>
201 </includes>
202 </configuration>
203 </plugin>
margarethaf68daa62017-09-21 02:11:24 +0200204 </plugins>
205 </build>
206
207 <dependencies>
208 <dependency>
209 <groupId>de.ids_mannheim.korap</groupId>
210 <artifactId>Kustvakt-core</artifactId>
margaretha3da7cd32018-10-22 17:42:52 +0200211 <version>0.61.3</version>
margarethaf68daa62017-09-21 02:11:24 +0200212 </dependency>
margaretha54134902017-09-27 18:43:11 +0200213 <!-- LDAP -->
214 <dependency>
215 <groupId>com.novell.ldap</groupId>
216 <artifactId>jldap</artifactId>
217 <version>4.3</version>
218 </dependency>
margaretha54134902017-09-27 18:43:11 +0200219 <dependency>
220 <groupId>com.unboundid</groupId>
221 <artifactId>unboundid-ldapsdk</artifactId>
222 <version>3.2.1</version>
223 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200224
margarethaf68daa62017-09-21 02:11:24 +0200225 <!-- Hibernate -->
226 <dependency>
227 <groupId>org.hibernate</groupId>
228 <artifactId>hibernate-entitymanager</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100229 <version>${hibernate.version}</version>
230 <exclusions>
231 <exclusion>
232 <groupId>org.javassist</groupId>
margaretha58e18632018-02-15 13:04:42 +0100233 <artifactId>javassist</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100234 </exclusion>
235 </exclusions>
margarethaf68daa62017-09-21 02:11:24 +0200236 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200237 <dependency>
238 <groupId>org.hibernate</groupId>
239 <artifactId>hibernate-jpamodelgen</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100240 <version>${hibernate.version}</version>
margarethad3c0fc92017-10-25 15:03:32 +0200241 <scope>provided</scope>
242 </dependency>
margaretha9025d642018-01-19 17:35:22 +0100243 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100244 <groupId>org.hibernate</groupId>
245 <artifactId>hibernate-java8</artifactId>
246 <version>${hibernate.version}</version>
margarethae6c711b2018-02-06 21:55:04 +0100247 </dependency>
248 <dependency>
margaretha34954472018-10-24 20:05:17 +0200249 <groupId>org.hibernate</groupId>
250 <artifactId>hibernate-c3p0</artifactId>
251 <version>${hibernate.version}</version>
margarethac7196d22018-08-27 14:20:03 +0200252 </dependency>
margaretha34954472018-10-24 20:05:17 +0200253
margarethac7196d22018-08-27 14:20:03 +0200254 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100255 <groupId>org.javassist</groupId>
256 <artifactId>javassist</artifactId>
257 <version>3.22.0-GA</version>
margaretha9025d642018-01-19 17:35:22 +0100258 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200259
margaretha318fec32017-10-24 12:11:58 +0200260 <!-- MySql -->
261 <dependency>
262 <groupId>mysql</groupId>
263 <artifactId>mysql-connector-java</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +0100264 <version>6.0.6</version>
margaretha318fec32017-10-24 12:11:58 +0200265 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200266
267 <!-- Jersey -->
268 <dependency>
269 <groupId>com.sun.jersey.jersey-test-framework</groupId>
270 <artifactId>jersey-test-framework-core</artifactId>
271 <version>${jersey.version}</version>
272 <scope>test</scope>
273 </dependency>
274 <dependency>
275 <groupId>com.sun.jersey.jersey-test-framework</groupId>
276 <artifactId>jersey-test-framework-grizzly</artifactId>
277 <version>${jersey.version}</version>
278 <scope>test</scope>
279 </dependency>
margaretha34954472018-10-24 20:05:17 +0200280
margaretha1b320452018-08-02 16:56:25 +0200281 <dependency>
margaretha235a6802018-06-06 19:21:53 +0200282 <groupId>com.sun.jersey</groupId>
283 <artifactId>jersey-json</artifactId>
284 <version>${jersey.version}</version>
margaretha7f0a4d42018-02-20 19:16:44 +0100285 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200286
287 <!-- Spring -->
margaretha54134902017-09-27 18:43:11 +0200288 <dependency>
289 <groupId>org.springframework</groupId>
290 <artifactId>spring-jdbc</artifactId>
291 <version>${spring-framework.version}</version>
292 </dependency>
293 <dependency>
294 <groupId>org.springframework</groupId>
295 <artifactId>spring-tx</artifactId>
296 <version>${spring-framework.version}</version>
297 </dependency>
margaretha2afb97d2017-12-07 19:18:44 +0100298 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100299 <groupId>org.springframework.security</groupId>
300 <artifactId>spring-security-core</artifactId>
margaretha3da7cd32018-10-22 17:42:52 +0200301 <version>${spring-framework.version}</version>
margaretha2afb97d2017-12-07 19:18:44 +0100302 </dependency>
303 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100304 <groupId>org.springframework.security</groupId>
305 <artifactId>spring-security-web</artifactId>
margaretha3da7cd32018-10-22 17:42:52 +0200306 <version>${spring-framework.version}</version>
margaretha58e18632018-02-15 13:04:42 +0100307 </dependency>
308
margaretha58e18632018-02-15 13:04:42 +0100309 <!-- velocity -->
310 <dependency>
311 <groupId>org.apache.velocity</groupId>
312 <artifactId>velocity-engine-core</artifactId>
313 <version>2.0</version>
314 </dependency>
315 <dependency>
316 <groupId>org.apache.velocity</groupId>
317 <artifactId>velocity-tools</artifactId>
318 <version>2.0</version>
319 </dependency>
320 <!-- mail -->
321 <dependency>
322 <groupId>com.sun.mail</groupId>
323 <artifactId>javax.mail</artifactId>
324 <version>1.6.0</version>
325 </dependency>
326 <dependency>
327 <groupId>javax.activation</groupId>
328 <artifactId>activation</artifactId>
329 <version>1.1.1</version>
330 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200331
margaretha54134902017-09-27 18:43:11 +0200332 <!-- Flyway -->
333 <dependency>
334 <groupId>org.flywaydb</groupId>
335 <artifactId>flyway-core</artifactId>
336 <version>4.0</version>
337 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200338
margarethafb027f92018-04-23 20:00:13 +0200339 <!-- OAuth -->
340 <dependency>
341 <groupId>org.apache.oltu.oauth2</groupId>
342 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
margarethae4034a82018-07-02 14:46:59 +0200343 <version>1.0.2</version>
margarethafb027f92018-04-23 20:00:13 +0200344 </dependency>
margarethae4034a82018-07-02 14:46:59 +0200345 <dependency>
346 <groupId>org.apache.oltu.oauth2</groupId>
347 <artifactId>org.apache.oltu.oauth2.client</artifactId>
348 <version>1.0.2</version>
349 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200350 <!-- JWT -->
351 <dependency>
352 <groupId>com.nimbusds</groupId>
353 <artifactId>nimbus-jose-jwt</artifactId>
354 <version>5.10</version>
355 </dependency>
margaretha9c78e1a2018-06-27 14:12:35 +0200356
margarethaec247dd2018-06-12 21:55:46 +0200357 <!-- OpenId -->
358 <dependency>
margaretha9c78e1a2018-06-27 14:12:35 +0200359 <groupId>com.nimbusds</groupId>
360 <artifactId>oauth2-oidc-sdk</artifactId>
361 <version>5.62</version>
margarethaec247dd2018-06-12 21:55:46 +0200362 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200363 </dependencies>
Akron63656052018-11-07 12:20:13 +0100364</project>