blob: 9d0a1d9ab91e31c054cb66cefa2afd63f0e516cb [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>
margaretha79d738c2018-12-17 16:45:47 +01006 <version>0.61.5</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>
margaretha2df06602018-11-14 19:10:30 +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>
margaretha2df06602018-11-14 19:10:30 +0100211 <version>[0.61.4,)</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
margaretha318fec32017-10-24 12:11:58 +0200254 <!-- MySql -->
255 <dependency>
256 <groupId>mysql</groupId>
257 <artifactId>mysql-connector-java</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +0100258 <version>6.0.6</version>
margaretha318fec32017-10-24 12:11:58 +0200259 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200260
261 <!-- Jersey -->
262 <dependency>
263 <groupId>com.sun.jersey.jersey-test-framework</groupId>
264 <artifactId>jersey-test-framework-core</artifactId>
265 <version>${jersey.version}</version>
266 <scope>test</scope>
267 </dependency>
268 <dependency>
269 <groupId>com.sun.jersey.jersey-test-framework</groupId>
270 <artifactId>jersey-test-framework-grizzly</artifactId>
271 <version>${jersey.version}</version>
272 <scope>test</scope>
273 </dependency>
margaretha34954472018-10-24 20:05:17 +0200274
margaretha58e18632018-02-15 13:04:42 +0100275 <!-- velocity -->
276 <dependency>
277 <groupId>org.apache.velocity</groupId>
278 <artifactId>velocity-engine-core</artifactId>
279 <version>2.0</version>
280 </dependency>
281 <dependency>
282 <groupId>org.apache.velocity</groupId>
283 <artifactId>velocity-tools</artifactId>
284 <version>2.0</version>
285 </dependency>
286 <!-- mail -->
287 <dependency>
288 <groupId>com.sun.mail</groupId>
289 <artifactId>javax.mail</artifactId>
290 <version>1.6.0</version>
291 </dependency>
292 <dependency>
293 <groupId>javax.activation</groupId>
294 <artifactId>activation</artifactId>
295 <version>1.1.1</version>
296 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200297
margarethafb027f92018-04-23 20:00:13 +0200298 <!-- OAuth -->
299 <dependency>
300 <groupId>org.apache.oltu.oauth2</groupId>
301 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
margarethae4034a82018-07-02 14:46:59 +0200302 <version>1.0.2</version>
margarethafb027f92018-04-23 20:00:13 +0200303 </dependency>
margarethae4034a82018-07-02 14:46:59 +0200304 <dependency>
305 <groupId>org.apache.oltu.oauth2</groupId>
306 <artifactId>org.apache.oltu.oauth2.client</artifactId>
307 <version>1.0.2</version>
308 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200309 <!-- JWT -->
310 <dependency>
311 <groupId>com.nimbusds</groupId>
312 <artifactId>nimbus-jose-jwt</artifactId>
313 <version>5.10</version>
314 </dependency>
margaretha9c78e1a2018-06-27 14:12:35 +0200315
margarethaec247dd2018-06-12 21:55:46 +0200316 <!-- OpenId -->
317 <dependency>
margaretha9c78e1a2018-06-27 14:12:35 +0200318 <groupId>com.nimbusds</groupId>
319 <artifactId>oauth2-oidc-sdk</artifactId>
320 <version>5.62</version>
margarethaec247dd2018-06-12 21:55:46 +0200321 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200322 </dependencies>
Akron63656052018-11-07 12:20:13 +0100323</project>