blob: 0f20e87d571990a145ca28ba53a88da5d5ab6513 [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>
margarethaa86b1412018-02-21 20:40:35 +0100186 <version>2.20.1</version>
margarethaf68daa62017-09-21 02:11:24 +0200187 <configuration>
margaretha0a45be12018-07-12 15:06:30 +0200188 <reuseForks>true</reuseForks>
189 <forkCount>1</forkCount>
190 <threadCount>10</threadCount>
margaretha34954472018-10-24 20:05:17 +0200191 <argLine>-Xmx512m -XX:MaxPermSize=256m
margaretha49cb6882018-07-04 04:19:54 +0200192 -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager</argLine>
margarethaf68daa62017-09-21 02:11:24 +0200193 <excludes>
margarethadfecb4b2017-12-12 19:32:30 +0100194 <exclude>de/ids_mannheim/korap/authentication/*.java</exclude>
margaretha49cb6882018-07-04 04:19:54 +0200195 <exclude>de/ids_mannheim/korap/web/controller/TokenExpiryTest.java</exclude>
margaretha1b320452018-08-02 16:56:25 +0200196 <exclude>**/VCReferenceTest.java</exclude>
margarethaf68daa62017-09-21 02:11:24 +0200197 </excludes>
198 <includes>
199 <include>de/ids_mannheim/korap/**/*.java</include>
200 </includes>
201 </configuration>
202 </plugin>
margarethaf68daa62017-09-21 02:11:24 +0200203 </plugins>
204 </build>
205
206 <dependencies>
207 <dependency>
208 <groupId>de.ids_mannheim.korap</groupId>
209 <artifactId>Kustvakt-core</artifactId>
margaretha3da7cd32018-10-22 17:42:52 +0200210 <version>0.61.3</version>
margarethaf68daa62017-09-21 02:11:24 +0200211 </dependency>
margaretha54134902017-09-27 18:43:11 +0200212 <!-- LDAP -->
213 <dependency>
214 <groupId>com.novell.ldap</groupId>
215 <artifactId>jldap</artifactId>
216 <version>4.3</version>
217 </dependency>
margaretha54134902017-09-27 18:43:11 +0200218 <dependency>
219 <groupId>com.unboundid</groupId>
220 <artifactId>unboundid-ldapsdk</artifactId>
221 <version>3.2.1</version>
222 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200223
margarethaf68daa62017-09-21 02:11:24 +0200224 <!-- Hibernate -->
225 <dependency>
226 <groupId>org.hibernate</groupId>
227 <artifactId>hibernate-entitymanager</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100228 <version>${hibernate.version}</version>
229 <exclusions>
230 <exclusion>
231 <groupId>org.javassist</groupId>
margaretha58e18632018-02-15 13:04:42 +0100232 <artifactId>javassist</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100233 </exclusion>
234 </exclusions>
margarethaf68daa62017-09-21 02:11:24 +0200235 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200236 <dependency>
237 <groupId>org.hibernate</groupId>
238 <artifactId>hibernate-jpamodelgen</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100239 <version>${hibernate.version}</version>
margarethad3c0fc92017-10-25 15:03:32 +0200240 <scope>provided</scope>
241 </dependency>
margaretha9025d642018-01-19 17:35:22 +0100242 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100243 <groupId>org.hibernate</groupId>
244 <artifactId>hibernate-java8</artifactId>
245 <version>${hibernate.version}</version>
margarethae6c711b2018-02-06 21:55:04 +0100246 </dependency>
247 <dependency>
margaretha34954472018-10-24 20:05:17 +0200248 <groupId>org.hibernate</groupId>
249 <artifactId>hibernate-c3p0</artifactId>
250 <version>${hibernate.version}</version>
margarethac7196d22018-08-27 14:20:03 +0200251 </dependency>
margaretha34954472018-10-24 20:05:17 +0200252
margarethac7196d22018-08-27 14:20:03 +0200253 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100254 <groupId>org.javassist</groupId>
255 <artifactId>javassist</artifactId>
256 <version>3.22.0-GA</version>
margaretha9025d642018-01-19 17:35:22 +0100257 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200258
margaretha318fec32017-10-24 12:11:58 +0200259 <!-- MySql -->
260 <dependency>
261 <groupId>mysql</groupId>
262 <artifactId>mysql-connector-java</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +0100263 <version>6.0.6</version>
margaretha318fec32017-10-24 12:11:58 +0200264 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200265
266 <!-- Jersey -->
267 <dependency>
268 <groupId>com.sun.jersey.jersey-test-framework</groupId>
269 <artifactId>jersey-test-framework-core</artifactId>
270 <version>${jersey.version}</version>
271 <scope>test</scope>
272 </dependency>
273 <dependency>
274 <groupId>com.sun.jersey.jersey-test-framework</groupId>
275 <artifactId>jersey-test-framework-grizzly</artifactId>
276 <version>${jersey.version}</version>
277 <scope>test</scope>
278 </dependency>
margaretha34954472018-10-24 20:05:17 +0200279
margaretha1b320452018-08-02 16:56:25 +0200280 <dependency>
margaretha235a6802018-06-06 19:21:53 +0200281 <groupId>com.sun.jersey</groupId>
282 <artifactId>jersey-json</artifactId>
283 <version>${jersey.version}</version>
margaretha7f0a4d42018-02-20 19:16:44 +0100284 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200285
286 <!-- Spring -->
margaretha54134902017-09-27 18:43:11 +0200287 <dependency>
288 <groupId>org.springframework</groupId>
289 <artifactId>spring-jdbc</artifactId>
290 <version>${spring-framework.version}</version>
291 </dependency>
292 <dependency>
293 <groupId>org.springframework</groupId>
294 <artifactId>spring-tx</artifactId>
295 <version>${spring-framework.version}</version>
296 </dependency>
margaretha2afb97d2017-12-07 19:18:44 +0100297 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100298 <groupId>org.springframework.security</groupId>
299 <artifactId>spring-security-core</artifactId>
margaretha3da7cd32018-10-22 17:42:52 +0200300 <version>${spring-framework.version}</version>
margaretha2afb97d2017-12-07 19:18:44 +0100301 </dependency>
302 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100303 <groupId>org.springframework.security</groupId>
304 <artifactId>spring-security-web</artifactId>
margaretha3da7cd32018-10-22 17:42:52 +0200305 <version>${spring-framework.version}</version>
margaretha58e18632018-02-15 13:04:42 +0100306 </dependency>
307
margaretha58e18632018-02-15 13:04:42 +0100308 <!-- velocity -->
309 <dependency>
310 <groupId>org.apache.velocity</groupId>
311 <artifactId>velocity-engine-core</artifactId>
312 <version>2.0</version>
313 </dependency>
314 <dependency>
315 <groupId>org.apache.velocity</groupId>
316 <artifactId>velocity-tools</artifactId>
317 <version>2.0</version>
318 </dependency>
319 <!-- mail -->
320 <dependency>
321 <groupId>com.sun.mail</groupId>
322 <artifactId>javax.mail</artifactId>
323 <version>1.6.0</version>
324 </dependency>
325 <dependency>
326 <groupId>javax.activation</groupId>
327 <artifactId>activation</artifactId>
328 <version>1.1.1</version>
329 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200330
margaretha54134902017-09-27 18:43:11 +0200331 <!-- Flyway -->
332 <dependency>
333 <groupId>org.flywaydb</groupId>
334 <artifactId>flyway-core</artifactId>
335 <version>4.0</version>
336 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200337
margarethafb027f92018-04-23 20:00:13 +0200338 <!-- OAuth -->
339 <dependency>
340 <groupId>org.apache.oltu.oauth2</groupId>
341 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
margarethae4034a82018-07-02 14:46:59 +0200342 <version>1.0.2</version>
margarethafb027f92018-04-23 20:00:13 +0200343 </dependency>
margarethae4034a82018-07-02 14:46:59 +0200344 <dependency>
345 <groupId>org.apache.oltu.oauth2</groupId>
346 <artifactId>org.apache.oltu.oauth2.client</artifactId>
347 <version>1.0.2</version>
348 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200349 <!-- JWT -->
350 <dependency>
351 <groupId>com.nimbusds</groupId>
352 <artifactId>nimbus-jose-jwt</artifactId>
353 <version>5.10</version>
354 </dependency>
margaretha9c78e1a2018-06-27 14:12:35 +0200355
margarethaec247dd2018-06-12 21:55:46 +0200356 <!-- OpenId -->
357 <dependency>
margaretha9c78e1a2018-06-27 14:12:35 +0200358 <groupId>com.nimbusds</groupId>
359 <artifactId>oauth2-oidc-sdk</artifactId>
360 <version>5.62</version>
margarethaec247dd2018-06-12 21:55:46 +0200361 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200362 </dependencies>
margarethaf68daa62017-09-21 02:11:24 +0200363</project>