blob: a1ff3cbc4423eceab01b6b9fd0a757c5fecf52f8 [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>
margarethaaca2fff2023-05-09 14:23:49 +02006 <version>0.70.1</version>
margarethaf68daa62017-09-21 02:11:24 +02007 <properties>
abcpro10c746892022-11-03 22:47:04 +00008 <java.version>11</java.version>
margarethaf68daa62017-09-21 02:11:24 +02009 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
dependabot[bot]7cc9dd72023-03-23 17:56:32 +000010 <jersey.version>2.39.1</jersey.version>
dependabot[bot]38cd4872023-02-06 17:00:54 +000011 <hibernate.version>5.6.15.Final</hibernate.version>
margarethaf68daa62017-09-21 02:11:24 +020012 </properties>
margaretha34954472018-10-24 20:05:17 +020013 <profiles>
14 <profile>
15 <id>full</id>
16 <activation>
17 <activeByDefault>true</activeByDefault>
18 </activation>
19 <build>
20 <plugins>
21 <plugin>
22 <artifactId>maven-shade-plugin</artifactId>
dependabot[bot]bfbfc432022-10-27 17:02:10 +000023 <version>3.4.1</version>
margaretha34954472018-10-24 20:05:17 +020024 <executions>
25 <!-- option 1 -->
26 <execution>
27 <id>full</id>
28 <phase>package</phase>
29 <goals>
30 <goal>shade</goal>
31 </goals>
32 <configuration>
33 <finalName>Kustvakt-full-${project.version}</finalName>
34 <transformers>
35 <transformer
36 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
37 <mainClass>
38 de.ids_mannheim.korap.server.KustvaktServer
39 </mainClass>
40 </transformer>
41 <transformer
42 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
43 <resource>META-INF/spring.handlers
44 </resource>
45 </transformer>
46 <transformer
47 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
48 <resource>META-INF/spring.schemas
49 </resource>
50 </transformer>
51 </transformers>
margaretha34954472018-10-24 20:05:17 +020052 <filters>
margaretha92ad2ec2023-05-15 14:10:00 +020053 <filter>
54 <artifact>*:*</artifact>
55 <excludes>
56 <exclude>db/lite/**</exclude>
57 </excludes>
58 </filter>
59 </filters>
margaretha34954472018-10-24 20:05:17 +020060 </configuration>
61 </execution>
62 </executions>
63 </plugin>
64 </plugins>
65 </build>
66 </profile>
margaretha92ad2ec2023-05-15 14:10:00 +020067
68
69 <profile>
70 <id>lite</id>
71 <build>
72 <plugins>
73 <plugin>
74 <artifactId>maven-shade-plugin</artifactId>
75 <version>3.4.1</version>
76 <executions>
77 <!--option 2-->
78 <execution>
79 <id>lite</id>
80 <phase>package</phase>
81 <goals>
82 <goal>shade</goal>
83 </goals>
84 <configuration>
85 <finalName>
86 Kustvakt-lite-${project.version}
87 </finalName>
88 <transformers>
89 <transformer
90 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
91 <mainClass>
92 de.ids_mannheim.korap.server.KustvaktLiteServer
93 </mainClass>
94 </transformer>
95 <transformer
96 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
97 <resource>META-INF/spring.handlers
98 </resource>
99 </transformer>
100 <transformer
101 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
102 <resource>META-INF/spring.schemas
103 </resource>
104 </transformer>
105 </transformers>
106 <filters>
107 <filter>
108 <artifact>*:*</artifact>
109 <excludes>
110 <exclude>db/mysql/**</exclude>
111 <exclude>db/predefined/**</exclude>
112 <exclude>db/sqlite/**</exclude>
113 <exclude>db/test/**</exclude>
114 <exclude>com.novell.ldap</exclude>
115 <exclude>com.unboundid</exclude>
116 <exclude>org.glassfish.jersey.test-framework*</exclude>
117 <exclude>org.apache.velocity*</exclude>
118 <exclude>com.sun.mail</exclude>
119 <exclude>javax.activation</exclude>
120 </excludes>
121 </filter>
122 </filters>
123 </configuration>
124 </execution>
125 </executions>
126 </plugin>
127 </plugins>
128 </build>
129 </profile>
130
margaretha34954472018-10-24 20:05:17 +0200131 </profiles>
margarethaf68daa62017-09-21 02:11:24 +0200132 <build>
margaretha34954472018-10-24 20:05:17 +0200133 <!-- <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering>
134 <includes> <include>**/*.info</include> <include>**/*.xml</include> <include>**/*.conf</include>
135 <include>**/*.kustvakt</include> <include>**/*.properties</include> <include>**/*.sql</include>
136 <include>**/*.vm</include> </includes> </resource> </resources> -->
margarethaf68daa62017-09-21 02:11:24 +0200137 <testResources>
138 <testResource>
139 <directory>src/test/resources</directory>
margarethaf68daa62017-09-21 02:11:24 +0200140 </testResource>
141 <testResource>
142 <directory>src/main/resources</directory>
143 <filtering>true</filtering>
144 <includes>
145 <include>**/*.info</include>
Marc Kupietz392f4782022-05-02 13:23:18 +0200146 <include>**/*.conf</include>
margaretha3da7cd32018-10-22 17:42:52 +0200147 <include>**/*.json</include>
Marc Kupietz0a378672022-04-30 09:35:27 +0200148 <include>**/*.p12</include>
149 <include>**/*.jks</include>
150 <include>**/*.ldif</include>
margarethaf68daa62017-09-21 02:11:24 +0200151 </includes>
152 </testResource>
153 </testResources>
154 <plugins>
155 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
156 <plugin>
157 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
158 <artifactId>maven-java-formatter-plugin</artifactId>
159 <version>0.4</version>
160 <configuration>
161 <configFile>${project.basedir}/Format.xml</configFile>
162 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
163 <compilerSource>${java.version}</compilerSource>
164 <compilerCompliance>${java.version}</compilerCompliance>
165 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
166 </configuration>
167 <!-- <executions> <execution> <goals> <goal>format</goal> </goals> </execution>
168 </executions> -->
169 </plugin>
170 <plugin>
171 <groupId>org.apache.maven.plugins</groupId>
172 <artifactId>maven-compiler-plugin</artifactId>
margaretha7e1fa0f2023-03-06 16:19:09 +0100173 <version>3.11.0</version>
margarethaf68daa62017-09-21 02:11:24 +0200174 <configuration>
175 <compilerVersion>${java.version}</compilerVersion>
176 <source>${java.version}</source>
177 <target>${java.version}</target>
margaretha58e18632018-02-15 13:04:42 +0100178 <!-- <compilerArguments> <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
179 <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
180 </compilerArguments> -->
Marc Kupietz483db752020-03-25 08:25:35 +0100181 <annotationProcessors>
margarethafc7d7772018-01-16 17:48:17 +0100182 <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
183 <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
Marc Kupietz483db752020-03-25 08:25:35 +0100184 </annotationProcessors>
margarethaf68daa62017-09-21 02:11:24 +0200185 </configuration>
186 </plugin>
margarethaf68daa62017-09-21 02:11:24 +0200187 <plugin>
188 <groupId>org.apache.maven.plugins</groupId>
189 <artifactId>maven-surefire-plugin</artifactId>
dependabot[bot]d7df7032023-05-08 17:57:41 +0000190 <version>3.1.0</version>
dependabot[bot]95465742023-02-17 17:56:32 +0000191 <dependencies>
192 <dependency>
193 <groupId>org.apache.maven.surefire</groupId>
194 <artifactId>surefire-junit47</artifactId>
dependabot[bot]d5648632023-05-08 17:57:43 +0000195 <version>3.1.0</version>
dependabot[bot]95465742023-02-17 17:56:32 +0000196 </dependency>
197 </dependencies>
margarethaf68daa62017-09-21 02:11:24 +0200198 <configuration>
margaretha0a45be12018-07-12 15:06:30 +0200199 <reuseForks>true</reuseForks>
200 <forkCount>1</forkCount>
201 <threadCount>10</threadCount>
Marc Kupietzddd9a8b2022-11-17 17:24:58 +0100202 <argLine>-Xmx512m
margaretha49cb6882018-07-04 04:19:54 +0200203 -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager</argLine>
margarethaf68daa62017-09-21 02:11:24 +0200204 <excludes>
Marc Kupietz0a378672022-04-30 09:35:27 +0200205 <exclude>de/ids_mannheim/korap/authentication/APIAuthenticationTest.java</exclude>
206 <exclude>de/ids_mannheim/korap/authentication/AuthenticationFilterTest.java</exclude>
207 <exclude>de/ids_mannheim/korap/authentication/Kustvakt*.java</exclude>
208 <exclude>de/ids_mannheim/korap/authentication/LdapTest.java</exclude>
209 <exclude>de/ids_mannheim/korap/authentication/Random*.java</exclude>
margaretha49cb6882018-07-04 04:19:54 +0200210 <exclude>de/ids_mannheim/korap/web/controller/TokenExpiryTest.java</exclude>
margaretha7cd52d12023-03-15 16:56:06 +0100211 <exclude>de/ids_mannheim/korap/web/controller/AdminLoadVCTest.java</exclude>
margarethaf68daa62017-09-21 02:11:24 +0200212 </excludes>
213 <includes>
214 <include>de/ids_mannheim/korap/**/*.java</include>
Marc Kupietz0a378672022-04-30 09:35:27 +0200215 <include>de/ids_mannheim/korap/authentication/LdapAuth3Test.java</include>
margarethaf68daa62017-09-21 02:11:24 +0200216 </includes>
217 </configuration>
218 </plugin>
margarethaf68daa62017-09-21 02:11:24 +0200219 </plugins>
220 </build>
221
222 <dependencies>
223 <dependency>
224 <groupId>de.ids_mannheim.korap</groupId>
225 <artifactId>Kustvakt-core</artifactId>
margaretha4bae6a02023-03-13 09:50:33 +0100226 <version>${project.version}</version>
margaretha0ddaed62021-01-21 17:10:33 +0100227 </dependency>
228 <dependency>
229 <groupId>de.ids_mannheim.korap</groupId>
230 <artifactId>Kustvakt-core</artifactId>
margaretha4bae6a02023-03-13 09:50:33 +0100231 <version>${project.version}</version>
margaretha0ddaed62021-01-21 17:10:33 +0100232 <classifier>tests</classifier>
233 <type>test-jar</type>
234 <scope>test</scope>
margarethaf68daa62017-09-21 02:11:24 +0200235 </dependency>
margaretha54134902017-09-27 18:43:11 +0200236 <!-- LDAP -->
237 <dependency>
238 <groupId>com.novell.ldap</groupId>
239 <artifactId>jldap</artifactId>
240 <version>4.3</version>
241 </dependency>
margaretha54134902017-09-27 18:43:11 +0200242 <dependency>
243 <groupId>com.unboundid</groupId>
244 <artifactId>unboundid-ldapsdk</artifactId>
dependabot[bot]722f68b2023-03-10 17:56:31 +0000245 <version>6.0.8</version>
margaretha54134902017-09-27 18:43:11 +0200246 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200247
margarethaf68daa62017-09-21 02:11:24 +0200248 <!-- Hibernate -->
249 <dependency>
250 <groupId>org.hibernate</groupId>
251 <artifactId>hibernate-entitymanager</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100252 <version>${hibernate.version}</version>
253 <exclusions>
254 <exclusion>
255 <groupId>org.javassist</groupId>
margaretha58e18632018-02-15 13:04:42 +0100256 <artifactId>javassist</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100257 </exclusion>
258 </exclusions>
margarethaf68daa62017-09-21 02:11:24 +0200259 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200260 <dependency>
261 <groupId>org.hibernate</groupId>
262 <artifactId>hibernate-jpamodelgen</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100263 <version>${hibernate.version}</version>
margarethad3c0fc92017-10-25 15:03:32 +0200264 <scope>provided</scope>
265 </dependency>
margaretha9025d642018-01-19 17:35:22 +0100266 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100267 <groupId>org.hibernate</groupId>
268 <artifactId>hibernate-java8</artifactId>
269 <version>${hibernate.version}</version>
margarethae6c711b2018-02-06 21:55:04 +0100270 </dependency>
271 <dependency>
margaretha34954472018-10-24 20:05:17 +0200272 <groupId>org.hibernate</groupId>
273 <artifactId>hibernate-c3p0</artifactId>
274 <version>${hibernate.version}</version>
margarethac7196d22018-08-27 14:20:03 +0200275 </dependency>
margaretha34954472018-10-24 20:05:17 +0200276
margaretha318fec32017-10-24 12:11:58 +0200277 <!-- MySql -->
278 <dependency>
279 <groupId>mysql</groupId>
280 <artifactId>mysql-connector-java</artifactId>
dependabot[bot]c60ca472022-07-25 17:02:41 +0000281 <version>8.0.30</version>
margaretha318fec32017-10-24 12:11:58 +0200282 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200283
284 <!-- Jersey -->
285 <dependency>
abcpro10c746892022-11-03 22:47:04 +0000286 <groupId>org.glassfish.jersey.test-framework</groupId>
margarethaf68daa62017-09-21 02:11:24 +0200287 <artifactId>jersey-test-framework-core</artifactId>
288 <version>${jersey.version}</version>
289 <scope>test</scope>
margaretha368d2d32023-02-28 11:23:22 +0100290 <exclusions>
291 <exclusion>
292 <groupId>org.junit.jupiter</groupId>
293 <artifactId>junit-jupiter</artifactId>
294 </exclusion>
295 </exclusions>
margarethaf68daa62017-09-21 02:11:24 +0200296 </dependency>
297 <dependency>
abcpro10c746892022-11-03 22:47:04 +0000298 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
299 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
margarethaf68daa62017-09-21 02:11:24 +0200300 <version>${jersey.version}</version>
301 <scope>test</scope>
margaretha368d2d32023-02-28 11:23:22 +0100302 <exclusions>
303 <exclusion>
304 <groupId>org.junit.jupiter</groupId>
305 <artifactId>junit-jupiter</artifactId>
306 </exclusion>
307 </exclusions>
margarethaf68daa62017-09-21 02:11:24 +0200308 </dependency>
margaretha34954472018-10-24 20:05:17 +0200309
margaretha58e18632018-02-15 13:04:42 +0100310 <!-- velocity -->
311 <dependency>
312 <groupId>org.apache.velocity</groupId>
313 <artifactId>velocity-engine-core</artifactId>
dependabot[bot]2d36f792021-03-08 05:46:34 +0000314 <version>2.3</version>
margaretha58e18632018-02-15 13:04:42 +0100315 </dependency>
316 <dependency>
margaretha327d3ad2021-03-15 16:19:35 +0100317 <groupId>org.apache.velocity.tools</groupId>
318 <artifactId>velocity-tools-generic</artifactId>
319 <version>3.1</version>
margaretha58e18632018-02-15 13:04:42 +0100320 </dependency>
321 <!-- mail -->
322 <dependency>
323 <groupId>com.sun.mail</groupId>
324 <artifactId>javax.mail</artifactId>
dependabot[bot]7baae302020-07-06 05:43:30 +0000325 <version>1.6.2</version>
margaretha58e18632018-02-15 13:04:42 +0100326 </dependency>
327 <dependency>
328 <groupId>javax.activation</groupId>
329 <artifactId>activation</artifactId>
330 <version>1.1.1</version>
331 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200332
margarethafb027f92018-04-23 20:00:13 +0200333 <!-- OAuth -->
334 <dependency>
335 <groupId>org.apache.oltu.oauth2</groupId>
336 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
margarethae4034a82018-07-02 14:46:59 +0200337 <version>1.0.2</version>
margarethafb027f92018-04-23 20:00:13 +0200338 </dependency>
margarethae4034a82018-07-02 14:46:59 +0200339 <dependency>
340 <groupId>org.apache.oltu.oauth2</groupId>
341 <artifactId>org.apache.oltu.oauth2.client</artifactId>
342 <version>1.0.2</version>
343 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200344 <!-- JWT -->
345 <dependency>
346 <groupId>com.nimbusds</groupId>
347 <artifactId>nimbus-jose-jwt</artifactId>
dependabot[bot]92ad6942023-02-22 17:12:19 +0000348 <version>9.31</version>
margaretha235a6802018-06-06 19:21:53 +0200349 </dependency>
margaretha9c78e1a2018-06-27 14:12:35 +0200350
margarethaec247dd2018-06-12 21:55:46 +0200351 <!-- OpenId -->
352 <dependency>
margaretha9c78e1a2018-06-27 14:12:35 +0200353 <groupId>com.nimbusds</groupId>
354 <artifactId>oauth2-oidc-sdk</artifactId>
dependabot[bot]a16dbfb2023-05-08 17:57:32 +0000355 <version>10.9</version>
margarethaec247dd2018-06-12 21:55:46 +0200356 </dependency>
Marc Kupietzceea30c2020-05-15 16:00:03 +0200357
358 <!-- Project Lombok -->
359 <dependency>
360 <groupId>org.projectlombok</groupId>
361 <artifactId>lombok</artifactId>
dependabot[bot]ee4dddc2023-02-03 17:00:47 +0000362 <version>1.18.26</version>
Marc Kupietzceea30c2020-05-15 16:00:03 +0200363 <scope>provided</scope>
364 </dependency>
margaretha0ddaed62021-01-21 17:10:33 +0100365
366 <!-- Mockserver -->
367 <dependency>
368 <groupId>org.mock-server</groupId>
369 <artifactId>mockserver-netty</artifactId>
dependabot[bot]19fcf082023-01-12 17:01:24 +0000370 <version>5.15.0</version>
margaretha0ddaed62021-01-21 17:10:33 +0100371 <scope>test</scope>
372 </dependency>
Marc Kupietz0a378672022-04-30 09:35:27 +0200373
374 <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-text -->
375 <dependency>
376 <groupId>org.apache.commons</groupId>
377 <artifactId>commons-text</artifactId>
dependabot[bot]5e19a782022-09-29 17:04:17 +0000378 <version>1.10.0</version>
Marc Kupietz0a378672022-04-30 09:35:27 +0200379 </dependency>
380
margaretha235a6802018-06-06 19:21:53 +0200381 </dependencies>
Akron63656052018-11-07 12:20:13 +0100382</project>