blob: bccc9bf941916a7afa460356409e9a08ce4872a2 [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>
margaretha9025d642018-01-19 17:35:22 +01006 <version>0.59.10</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>
margarethaf68daa62017-09-21 02:11:24 +020012 <jersey.version>1.19.4</jersey.version>
margaretha9025d642018-01-19 17:35:22 +010013 <hibernate.version>5.1.11.Final</hibernate.version>
margarethaf68daa62017-09-21 02:11:24 +020014 </properties>
15 <build>
16 <resources>
17 <resource>
18 <directory>src/main/resources</directory>
19 <filtering>true</filtering>
20 <includes>
21 <include>**/*.info</include>
22 <include>**/*.xml</include>
23 <include>**/*.conf</include>
24 <include>**/*.kustvakt</include>
25 <include>**/*.properties</include>
26 <include>**/*.sql</include>
27 </includes>
28 </resource>
29 </resources>
30 <testResources>
31 <testResource>
32 <directory>src/test/resources</directory>
33 <filtering>true</filtering>
34 <includes>
margarethadfecb4b2017-12-12 19:32:30 +010035 <include>**/*.token</include>
margarethaf68daa62017-09-21 02:11:24 +020036 <include>**/*.xml</include>
37 <include>**/*.conf</include>
38 <include>**/*.info</include>
39 <include>**/*.properties</include>
40 </includes>
41 </testResource>
42 <testResource>
43 <directory>src/main/resources</directory>
44 <filtering>true</filtering>
45 <includes>
46 <include>**/*.info</include>
47 <include>**/*.properties</include>
48 </includes>
49 </testResource>
50 </testResources>
51 <plugins>
52 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
53 <plugin>
54 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
55 <artifactId>maven-java-formatter-plugin</artifactId>
56 <version>0.4</version>
57 <configuration>
58 <configFile>${project.basedir}/Format.xml</configFile>
59 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
60 <compilerSource>${java.version}</compilerSource>
61 <compilerCompliance>${java.version}</compilerCompliance>
62 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
63 </configuration>
64 <!-- <executions> <execution> <goals> <goal>format</goal> </goals> </execution>
65 </executions> -->
66 </plugin>
67 <plugin>
68 <groupId>org.apache.maven.plugins</groupId>
69 <artifactId>maven-compiler-plugin</artifactId>
margarethafc7d7772018-01-16 17:48:17 +010070 <version>3.7.0</version>
margarethaf68daa62017-09-21 02:11:24 +020071 <configuration>
72 <compilerVersion>${java.version}</compilerVersion>
73 <source>${java.version}</source>
74 <target>${java.version}</target>
margarethafc7d7772018-01-16 17:48:17 +010075 <!-- <compilerArguments>
margarethad3c0fc92017-10-25 15:03:32 +020076 <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
77 <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
margarethafc7d7772018-01-16 17:48:17 +010078 </compilerArguments> -->
margaretha9025d642018-01-19 17:35:22 +010079 <processors>
margarethafc7d7772018-01-16 17:48:17 +010080 <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
81 <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
margaretha9025d642018-01-19 17:35:22 +010082 </processors>
margarethaf68daa62017-09-21 02:11:24 +020083 </configuration>
84 </plugin>
margarethaf68daa62017-09-21 02:11:24 +020085 <plugin>
86 <groupId>org.apache.maven.plugins</groupId>
87 <artifactId>maven-surefire-plugin</artifactId>
88 <version>2.19.1</version>
89 <configuration>
90 <reuseForks>false</reuseForks>
91 <forkCount>2</forkCount>
92 <threadCount>10</threadCount>
93
94 <excludes>
margarethafc7d7772018-01-16 17:48:17 +010095 <!-- <exclude>de/ids_mannheim/korap/suites/*.java</exclude> -->
96 <!-- <exclude>de/ids_mannheim/korap/dao/*.java</exclude> -->
margarethadfecb4b2017-12-12 19:32:30 +010097 <exclude>de/ids_mannheim/korap/authentication/*.java</exclude>
margarethafc7d7772018-01-16 17:48:17 +010098 <!-- <exclude>**/ResourceServiceTest.java</exclude> -->
99 <!-- <exclude>**/ResourceInfoServiceTest.java</exclude> -->
margarethaf68daa62017-09-21 02:11:24 +0200100 <exclude>**/PolicyServiceTest.java</exclude>
101 </excludes>
102 <includes>
103 <include>de/ids_mannheim/korap/**/*.java</include>
104 </includes>
105 </configuration>
106 </plugin>
107 <plugin>
108 <artifactId>maven-shade-plugin</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +0100109 <version>3.1.0</version>
margarethaf68daa62017-09-21 02:11:24 +0200110 <executions>
111 <!-- option 1 -->
112 <execution>
113 <id>full</id>
114 <phase>package</phase>
115 <goals>
116 <goal>shade</goal>
117 </goals>
118 <configuration>
margarethaea68a0a2017-09-21 03:09:49 +0200119 <finalName>Kustvakt-full-${project.version}</finalName>
margarethaf68daa62017-09-21 02:11:24 +0200120 <transformers>
121 <transformer
122 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
123 <mainClass>
124 de.ids_mannheim.korap.server.KustvaktServer
125 </mainClass>
126 </transformer>
127 <transformer
128 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
129 <resource>META-INF/spring.handlers
130 </resource>
131 </transformer>
132 <transformer
133 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
134 <resource>META-INF/spring.schemas
135 </resource>
136 </transformer>
137 </transformers>
138 <!-- Additional configuration. apparently there is a securityException -->
139 <filters>
140 <filter>
141 <artifact>*:*</artifact>
142 <excludes>
143 <exclude>META-INF/*.SF</exclude>
144 <exclude>META-INF/*.DSA
145 </exclude>
146 <exclude>META-INF/*.RSA
147 </exclude>
148 </excludes>
149 </filter>
150 </filters>
151 </configuration>
152 </execution>
153 </executions>
154 </plugin>
155
156 </plugins>
157 </build>
158
159 <dependencies>
160 <dependency>
161 <groupId>de.ids_mannheim.korap</groupId>
162 <artifactId>Kustvakt-core</artifactId>
margaretha45667922018-01-25 21:23:03 +0100163 <version>0.59.10</version>
margaretha894a7d72017-11-08 19:24:20 +0100164 <type>jar</type>
margarethaf68daa62017-09-21 02:11:24 +0200165 </dependency>
margaretha54134902017-09-27 18:43:11 +0200166 <!-- LDAP -->
167 <dependency>
168 <groupId>com.novell.ldap</groupId>
169 <artifactId>jldap</artifactId>
170 <version>4.3</version>
171 </dependency>
margaretha54134902017-09-27 18:43:11 +0200172 <dependency>
173 <groupId>com.unboundid</groupId>
174 <artifactId>unboundid-ldapsdk</artifactId>
175 <version>3.2.1</version>
176 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200177
margarethaf68daa62017-09-21 02:11:24 +0200178 <!-- Hibernate -->
179 <dependency>
180 <groupId>org.hibernate</groupId>
181 <artifactId>hibernate-entitymanager</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100182 <version>${hibernate.version}</version>
183 <exclusions>
184 <exclusion>
185 <groupId>org.javassist</groupId>
186 <artifactId>javassist</artifactId>
187 </exclusion>
188 </exclusions>
margarethaf68daa62017-09-21 02:11:24 +0200189 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200190 <dependency>
191 <groupId>org.hibernate</groupId>
192 <artifactId>hibernate-jpamodelgen</artifactId>
margaretha9025d642018-01-19 17:35:22 +0100193 <version>${hibernate.version}</version>
margarethad3c0fc92017-10-25 15:03:32 +0200194 <scope>provided</scope>
195 </dependency>
margaretha9025d642018-01-19 17:35:22 +0100196 <dependency>
197 <groupId>org.javassist</groupId>
198 <artifactId>javassist</artifactId>
199 <version>3.22.0-GA</version>
200 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200201
margaretha318fec32017-10-24 12:11:58 +0200202 <!-- MySql -->
203 <dependency>
204 <groupId>mysql</groupId>
205 <artifactId>mysql-connector-java</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +0100206 <version>6.0.6</version>
margaretha318fec32017-10-24 12:11:58 +0200207 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200208
209 <!-- Jersey -->
210 <dependency>
211 <groupId>com.sun.jersey.jersey-test-framework</groupId>
212 <artifactId>jersey-test-framework-core</artifactId>
213 <version>${jersey.version}</version>
214 <scope>test</scope>
215 </dependency>
216 <dependency>
217 <groupId>com.sun.jersey.jersey-test-framework</groupId>
218 <artifactId>jersey-test-framework-grizzly</artifactId>
219 <version>${jersey.version}</version>
220 <scope>test</scope>
221 </dependency>
222
223 <!-- Spring -->
margaretha54134902017-09-27 18:43:11 +0200224 <dependency>
225 <groupId>org.springframework</groupId>
226 <artifactId>spring-jdbc</artifactId>
227 <version>${spring-framework.version}</version>
228 </dependency>
229 <dependency>
230 <groupId>org.springframework</groupId>
231 <artifactId>spring-tx</artifactId>
232 <version>${spring-framework.version}</version>
233 </dependency>
margaretha2afb97d2017-12-07 19:18:44 +0100234 <dependency>
235 <groupId>org.springframework.security</groupId>
236 <artifactId>spring-security-core</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +0100237 <version>${spring-security.version}</version>
margaretha2afb97d2017-12-07 19:18:44 +0100238 </dependency>
239 <dependency>
240 <groupId>org.springframework.security</groupId>
241 <artifactId>spring-security-web</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +0100242 <version>${spring-security.version}</version>
margaretha2afb97d2017-12-07 19:18:44 +0100243 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200244
margaretha54134902017-09-27 18:43:11 +0200245 <!-- Flyway -->
246 <dependency>
247 <groupId>org.flywaydb</groupId>
248 <artifactId>flyway-core</artifactId>
249 <version>4.0</version>
250 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200251 </dependencies>
252</project>