blob: 23aaa7173cecfd2d3e09080348a750a67fb9526c [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>
margaretha74f122c2017-11-12 22:38:57 +01006 <version>0.59.9</version>
margarethaf68daa62017-09-21 02:11:24 +02007 <properties>
8 <java.version>1.7</java.version>
9 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
margaretha514e1412017-10-10 15:54:20 +020010 <spring-framework.version>4.3.11.RELEASE</spring-framework.version>
margarethaf68daa62017-09-21 02:11:24 +020011 <jersey.version>1.19.4</jersey.version>
12 </properties>
13 <build>
14 <resources>
15 <resource>
16 <directory>src/main/resources</directory>
17 <filtering>true</filtering>
18 <includes>
19 <include>**/*.info</include>
20 <include>**/*.xml</include>
21 <include>**/*.conf</include>
22 <include>**/*.kustvakt</include>
23 <include>**/*.properties</include>
24 <include>**/*.sql</include>
25 </includes>
26 </resource>
27 </resources>
28 <testResources>
29 <testResource>
30 <directory>src/test/resources</directory>
31 <filtering>true</filtering>
32 <includes>
margarethadfecb4b2017-12-12 19:32:30 +010033 <include>**/*.token</include>
margarethaf68daa62017-09-21 02:11:24 +020034 <include>**/*.xml</include>
35 <include>**/*.conf</include>
36 <include>**/*.info</include>
37 <include>**/*.properties</include>
38 </includes>
39 </testResource>
40 <testResource>
41 <directory>src/main/resources</directory>
42 <filtering>true</filtering>
43 <includes>
44 <include>**/*.info</include>
45 <include>**/*.properties</include>
46 </includes>
47 </testResource>
48 </testResources>
49 <plugins>
50 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
51 <plugin>
52 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
53 <artifactId>maven-java-formatter-plugin</artifactId>
54 <version>0.4</version>
55 <configuration>
56 <configFile>${project.basedir}/Format.xml</configFile>
57 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
58 <compilerSource>${java.version}</compilerSource>
59 <compilerCompliance>${java.version}</compilerCompliance>
60 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
61 </configuration>
62 <!-- <executions> <execution> <goals> <goal>format</goal> </goals> </execution>
63 </executions> -->
64 </plugin>
65 <plugin>
66 <groupId>org.apache.maven.plugins</groupId>
67 <artifactId>maven-compiler-plugin</artifactId>
margarethafc7d7772018-01-16 17:48:17 +010068 <version>3.7.0</version>
margarethaf68daa62017-09-21 02:11:24 +020069 <configuration>
70 <compilerVersion>${java.version}</compilerVersion>
71 <source>${java.version}</source>
72 <target>${java.version}</target>
margarethafc7d7772018-01-16 17:48:17 +010073 <verbose>true</verbose>
74 <fork>true</fork>
75 <!-- <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> -->
79 <!-- <processors>
80 <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
81 <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
82 </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>
109 <version>2.1</version>
110 <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>
margaretha894a7d72017-11-08 19:24:20 +0100163 <version>0.59.9</version>
164 <type>jar</type>
margarethaf68daa62017-09-21 02:11:24 +0200165 </dependency>
166 <dependency>
167 <groupId>de.ids_mannheim.korap</groupId>
168 <artifactId>Kustvakt-core</artifactId>
margaretha894a7d72017-11-08 19:24:20 +0100169 <version>0.59.9</version>
margarethaf68daa62017-09-21 02:11:24 +0200170 <type>test-jar</type>
171 <scope>test</scope>
172 </dependency>
margaretha54134902017-09-27 18:43:11 +0200173 <!-- LDAP -->
174 <dependency>
175 <groupId>com.novell.ldap</groupId>
176 <artifactId>jldap</artifactId>
177 <version>4.3</version>
178 </dependency>
margaretha54134902017-09-27 18:43:11 +0200179 <dependency>
180 <groupId>com.unboundid</groupId>
181 <artifactId>unboundid-ldapsdk</artifactId>
182 <version>3.2.1</version>
183 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200184
margarethaf68daa62017-09-21 02:11:24 +0200185 <!-- Hibernate -->
186 <dependency>
187 <groupId>org.hibernate</groupId>
188 <artifactId>hibernate-entitymanager</artifactId>
189 <version>5.1.8.Final</version>
190 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200191 <dependency>
192 <groupId>org.hibernate</groupId>
193 <artifactId>hibernate-jpamodelgen</artifactId>
194 <version>5.2.12.Final</version>
195 <scope>provided</scope>
196 </dependency>
197
margaretha318fec32017-10-24 12:11:58 +0200198 <!-- MySql -->
199 <dependency>
200 <groupId>mysql</groupId>
201 <artifactId>mysql-connector-java</artifactId>
202 <version>5.1.21</version>
203 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200204
205 <!-- Jersey -->
206 <dependency>
207 <groupId>com.sun.jersey.jersey-test-framework</groupId>
208 <artifactId>jersey-test-framework-core</artifactId>
209 <version>${jersey.version}</version>
210 <scope>test</scope>
211 </dependency>
212 <dependency>
213 <groupId>com.sun.jersey.jersey-test-framework</groupId>
214 <artifactId>jersey-test-framework-grizzly</artifactId>
215 <version>${jersey.version}</version>
216 <scope>test</scope>
217 </dependency>
218
219 <!-- Spring -->
margaretha54134902017-09-27 18:43:11 +0200220 <dependency>
221 <groupId>org.springframework</groupId>
222 <artifactId>spring-jdbc</artifactId>
223 <version>${spring-framework.version}</version>
224 </dependency>
225 <dependency>
226 <groupId>org.springframework</groupId>
227 <artifactId>spring-tx</artifactId>
228 <version>${spring-framework.version}</version>
229 </dependency>
margaretha2afb97d2017-12-07 19:18:44 +0100230 <dependency>
231 <groupId>org.springframework.security</groupId>
232 <artifactId>spring-security-core</artifactId>
233 <version>4.2.3.RELEASE</version>
234 </dependency>
235 <dependency>
236 <groupId>org.springframework.security</groupId>
237 <artifactId>spring-security-web</artifactId>
238 <version>4.2.3.RELEASE</version>
239 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200240
margaretha54134902017-09-27 18:43:11 +0200241 <!-- Flyway -->
242 <dependency>
243 <groupId>org.flywaydb</groupId>
244 <artifactId>flyway-core</artifactId>
245 <version>4.0</version>
246 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200247 </dependencies>
248</project>