blob: 9f0b6cd2a2ec56832f874631e942d054d718c31c [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>
margarethaec247dd2018-06-12 21:55:46 +02006 <version>0.60.4</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>
margaretha2c019fa2018-02-01 19:50:51 +010010 <spring-framework.version>5.0.3.RELEASE</spring-framework.version>
11 <spring-security.version>4.2.3.RELEASE</spring-security.version>
margaretha58e18632018-02-15 13:04:42 +010012 <jetty.version>9.4.8.v20171121</jetty.version>
margarethaf68daa62017-09-21 02:11:24 +020013 <jersey.version>1.19.4</jersey.version>
margaretha9025d642018-01-19 17:35:22 +010014 <hibernate.version>5.1.11.Final</hibernate.version>
margarethaf68daa62017-09-21 02:11:24 +020015 </properties>
16 <build>
17 <resources>
18 <resource>
19 <directory>src/main/resources</directory>
20 <filtering>true</filtering>
21 <includes>
22 <include>**/*.info</include>
23 <include>**/*.xml</include>
24 <include>**/*.conf</include>
25 <include>**/*.kustvakt</include>
26 <include>**/*.properties</include>
27 <include>**/*.sql</include>
margaretha7f0a4d42018-02-20 19:16:44 +010028 <include>**/*.vm</include>
margarethaf68daa62017-09-21 02:11:24 +020029 </includes>
30 </resource>
31 </resources>
32 <testResources>
33 <testResource>
34 <directory>src/test/resources</directory>
margarethaf68daa62017-09-21 02:11:24 +020035 </testResource>
36 <testResource>
37 <directory>src/main/resources</directory>
38 <filtering>true</filtering>
39 <includes>
40 <include>**/*.info</include>
41 <include>**/*.properties</include>
42 </includes>
43 </testResource>
44 </testResources>
45 <plugins>
46 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
47 <plugin>
48 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
49 <artifactId>maven-java-formatter-plugin</artifactId>
50 <version>0.4</version>
51 <configuration>
52 <configFile>${project.basedir}/Format.xml</configFile>
53 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
54 <compilerSource>${java.version}</compilerSource>
55 <compilerCompliance>${java.version}</compilerCompliance>
56 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
57 </configuration>
58 <!-- <executions> <execution> <goals> <goal>format</goal> </goals> </execution>
59 </executions> -->
60 </plugin>
61 <plugin>
62 <groupId>org.apache.maven.plugins</groupId>
63 <artifactId>maven-compiler-plugin</artifactId>
margarethafc7d7772018-01-16 17:48:17 +010064 <version>3.7.0</version>
margarethaf68daa62017-09-21 02:11:24 +020065 <configuration>
66 <compilerVersion>${java.version}</compilerVersion>
67 <source>${java.version}</source>
68 <target>${java.version}</target>
margaretha58e18632018-02-15 13:04:42 +010069 <!-- <compilerArguments> <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
70 <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
71 </compilerArguments> -->
margaretha9025d642018-01-19 17:35:22 +010072 <processors>
margarethafc7d7772018-01-16 17:48:17 +010073 <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
74 <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
margaretha9025d642018-01-19 17:35:22 +010075 </processors>
margarethaf68daa62017-09-21 02:11:24 +020076 </configuration>
77 </plugin>
margarethaf68daa62017-09-21 02:11:24 +020078 <plugin>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-surefire-plugin</artifactId>
margarethaa86b1412018-02-21 20:40:35 +010081 <version>2.20.1</version>
margarethaf68daa62017-09-21 02:11:24 +020082 <configuration>
83 <reuseForks>false</reuseForks>
84 <forkCount>2</forkCount>
margarethaefc18a42018-03-01 16:01:42 +010085 <threadCount>4</threadCount>
margaretha49cb6882018-07-04 04:19:54 +020086 <argLine>-Xmx512m -XX:MaxPermSize=256m
87 -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager</argLine>
margarethaf68daa62017-09-21 02:11:24 +020088 <excludes>
margarethadfecb4b2017-12-12 19:32:30 +010089 <exclude>de/ids_mannheim/korap/authentication/*.java</exclude>
margaretha49cb6882018-07-04 04:19:54 +020090 <exclude>de/ids_mannheim/korap/web/controller/TokenExpiryTest.java</exclude>
margarethaf68daa62017-09-21 02:11:24 +020091 </excludes>
92 <includes>
93 <include>de/ids_mannheim/korap/**/*.java</include>
94 </includes>
95 </configuration>
96 </plugin>
97 <plugin>
98 <artifactId>maven-shade-plugin</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +010099 <version>3.1.0</version>
margarethaf68daa62017-09-21 02:11:24 +0200100 <executions>
101 <!-- option 1 -->
102 <execution>
103 <id>full</id>
104 <phase>package</phase>
105 <goals>
106 <goal>shade</goal>
107 </goals>
108 <configuration>
margarethaea68a0a2017-09-21 03:09:49 +0200109 <finalName>Kustvakt-full-${project.version}</finalName>
margarethaf68daa62017-09-21 02:11:24 +0200110 <transformers>
111 <transformer
112 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
113 <mainClass>
114 de.ids_mannheim.korap.server.KustvaktServer
115 </mainClass>
116 </transformer>
117 <transformer
118 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
119 <resource>META-INF/spring.handlers
120 </resource>
121 </transformer>
122 <transformer
123 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
124 <resource>META-INF/spring.schemas
125 </resource>
126 </transformer>
127 </transformers>
128 <!-- Additional configuration. apparently there is a securityException -->
129 <filters>
130 <filter>
131 <artifact>*:*</artifact>
132 <excludes>
133 <exclude>META-INF/*.SF</exclude>
134 <exclude>META-INF/*.DSA
135 </exclude>
136 <exclude>META-INF/*.RSA
137 </exclude>
138 </excludes>
139 </filter>
140 </filters>
141 </configuration>
142 </execution>
143 </executions>
144 </plugin>
145
146 </plugins>
147 </build>
148
149 <dependencies>
150 <dependency>
151 <groupId>de.ids_mannheim.korap</groupId>
152 <artifactId>Kustvakt-core</artifactId>
margaretha5225ed02018-06-25 18:38:40 +0200153 <version>0.60.4</version>
margarethaf68daa62017-09-21 02:11:24 +0200154 </dependency>
margaretha54134902017-09-27 18:43:11 +0200155 <!-- LDAP -->
156 <dependency>
157 <groupId>com.novell.ldap</groupId>
158 <artifactId>jldap</artifactId>
159 <version>4.3</version>
160 </dependency>
margaretha54134902017-09-27 18:43:11 +0200161 <dependency>
162 <groupId>com.unboundid</groupId>
163 <artifactId>unboundid-ldapsdk</artifactId>
164 <version>3.2.1</version>
165 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200166
margarethaf68daa62017-09-21 02:11:24 +0200167 <!-- Hibernate -->
168 <dependency>
169 <groupId>org.hibernate</groupId>
170 <artifactId>hibernate-entitymanager</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100171 <version>${hibernate.version}</version>
172 <exclusions>
173 <exclusion>
174 <groupId>org.javassist</groupId>
margaretha58e18632018-02-15 13:04:42 +0100175 <artifactId>javassist</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100176 </exclusion>
177 </exclusions>
margarethaf68daa62017-09-21 02:11:24 +0200178 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200179 <dependency>
180 <groupId>org.hibernate</groupId>
181 <artifactId>hibernate-jpamodelgen</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100182 <version>${hibernate.version}</version>
margarethad3c0fc92017-10-25 15:03:32 +0200183 <scope>provided</scope>
184 </dependency>
margaretha9025d642018-01-19 17:35:22 +0100185 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100186 <groupId>org.hibernate</groupId>
187 <artifactId>hibernate-java8</artifactId>
188 <version>${hibernate.version}</version>
margarethae6c711b2018-02-06 21:55:04 +0100189 </dependency>
190 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100191 <groupId>org.javassist</groupId>
192 <artifactId>javassist</artifactId>
193 <version>3.22.0-GA</version>
margaretha9025d642018-01-19 17:35:22 +0100194 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200195
margaretha318fec32017-10-24 12:11:58 +0200196 <!-- MySql -->
197 <dependency>
198 <groupId>mysql</groupId>
199 <artifactId>mysql-connector-java</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +0100200 <version>6.0.6</version>
margaretha318fec32017-10-24 12:11:58 +0200201 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200202
203 <!-- Jersey -->
204 <dependency>
205 <groupId>com.sun.jersey.jersey-test-framework</groupId>
206 <artifactId>jersey-test-framework-core</artifactId>
207 <version>${jersey.version}</version>
208 <scope>test</scope>
209 </dependency>
210 <dependency>
211 <groupId>com.sun.jersey.jersey-test-framework</groupId>
212 <artifactId>jersey-test-framework-grizzly</artifactId>
213 <version>${jersey.version}</version>
214 <scope>test</scope>
215 </dependency>
margaretha7f0a4d42018-02-20 19:16:44 +0100216 <dependency>
margaretha235a6802018-06-06 19:21:53 +0200217 <groupId>com.sun.jersey</groupId>
218 <artifactId>jersey-json</artifactId>
219 <version>${jersey.version}</version>
margaretha7f0a4d42018-02-20 19:16:44 +0100220 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200221
222 <!-- Spring -->
margaretha54134902017-09-27 18:43:11 +0200223 <dependency>
224 <groupId>org.springframework</groupId>
225 <artifactId>spring-jdbc</artifactId>
226 <version>${spring-framework.version}</version>
227 </dependency>
228 <dependency>
229 <groupId>org.springframework</groupId>
230 <artifactId>spring-tx</artifactId>
231 <version>${spring-framework.version}</version>
232 </dependency>
margaretha2afb97d2017-12-07 19:18:44 +0100233 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100234 <groupId>org.springframework.security</groupId>
235 <artifactId>spring-security-core</artifactId>
236 <version>${spring-security.version}</version>
margaretha2afb97d2017-12-07 19:18:44 +0100237 </dependency>
238 <dependency>
margaretha58e18632018-02-15 13:04:42 +0100239 <groupId>org.springframework.security</groupId>
240 <artifactId>spring-security-web</artifactId>
241 <version>${spring-security.version}</version>
242 </dependency>
243
margaretha58e18632018-02-15 13:04:42 +0100244 <!-- velocity -->
245 <dependency>
246 <groupId>org.apache.velocity</groupId>
247 <artifactId>velocity-engine-core</artifactId>
248 <version>2.0</version>
249 </dependency>
250 <dependency>
251 <groupId>org.apache.velocity</groupId>
252 <artifactId>velocity-tools</artifactId>
253 <version>2.0</version>
254 </dependency>
255 <!-- mail -->
256 <dependency>
257 <groupId>com.sun.mail</groupId>
258 <artifactId>javax.mail</artifactId>
259 <version>1.6.0</version>
260 </dependency>
261 <dependency>
262 <groupId>javax.activation</groupId>
263 <artifactId>activation</artifactId>
264 <version>1.1.1</version>
265 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200266
margaretha58e18632018-02-15 13:04:42 +0100267 <dependency>
margaretha235a6802018-06-06 19:21:53 +0200268 <groupId>javax.servlet</groupId>
269 <artifactId>javax.servlet-api</artifactId>
270 <version>4.0.0</version>
margaretha2afb97d2017-12-07 19:18:44 +0100271 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200272
margaretha54134902017-09-27 18:43:11 +0200273 <!-- Flyway -->
274 <dependency>
275 <groupId>org.flywaydb</groupId>
276 <artifactId>flyway-core</artifactId>
277 <version>4.0</version>
278 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200279
margarethafb027f92018-04-23 20:00:13 +0200280 <!-- OAuth -->
281 <dependency>
282 <groupId>org.apache.oltu.oauth2</groupId>
283 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
margarethae4034a82018-07-02 14:46:59 +0200284 <version>1.0.2</version>
margarethafb027f92018-04-23 20:00:13 +0200285 </dependency>
margarethae4034a82018-07-02 14:46:59 +0200286 <dependency>
287 <groupId>org.apache.oltu.oauth2</groupId>
288 <artifactId>org.apache.oltu.oauth2.client</artifactId>
289 <version>1.0.2</version>
290 </dependency>
291 <!-- <dependency>
292 <groupId>org.apache.oltu.oauth2</groupId>
293 <artifactId>org.apache.oltu.oauth2.dynamicreg.client</artifactId>
294 <version>1.0.2</version>
295 </dependency> -->
margaretha235a6802018-06-06 19:21:53 +0200296 <!-- JWT -->
297 <dependency>
298 <groupId>com.nimbusds</groupId>
299 <artifactId>nimbus-jose-jwt</artifactId>
300 <version>5.10</version>
301 </dependency>
margaretha9c78e1a2018-06-27 14:12:35 +0200302
margarethaec247dd2018-06-12 21:55:46 +0200303 <!-- OpenId -->
304 <dependency>
margaretha9c78e1a2018-06-27 14:12:35 +0200305 <groupId>com.nimbusds</groupId>
306 <artifactId>oauth2-oidc-sdk</artifactId>
307 <version>5.62</version>
margarethaec247dd2018-06-12 21:55:46 +0200308 </dependency>
margaretha235a6802018-06-06 19:21:53 +0200309 </dependencies>
margarethaf68daa62017-09-21 02:11:24 +0200310</project>