blob: 238fbc69a49a106f7917e6d40232566930146dd2 [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>
33 <include>**/*.prop</include>
34 <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>
68 <version>3.3</version>
69 <configuration>
70 <compilerVersion>${java.version}</compilerVersion>
71 <source>${java.version}</source>
72 <target>${java.version}</target>
margarethad3c0fc92017-10-25 15:03:32 +020073 <processors>
74 <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
75 <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
76 </processors>
margarethaf68daa62017-09-21 02:11:24 +020077 </configuration>
78 </plugin>
margarethaf68daa62017-09-21 02:11:24 +020079 <plugin>
80 <groupId>org.apache.maven.plugins</groupId>
81 <artifactId>maven-surefire-plugin</artifactId>
82 <version>2.19.1</version>
83 <configuration>
84 <reuseForks>false</reuseForks>
85 <forkCount>2</forkCount>
86 <threadCount>10</threadCount>
87
88 <excludes>
margarethaf68daa62017-09-21 02:11:24 +020089 <exclude>de/ids_mannheim/korap/suites/*.java</exclude>
margarethaf6d5a822017-10-19 19:51:20 +020090 <exclude>de/ids_mannheim/korap/dao/*.java</exclude>
margarethaf68daa62017-09-21 02:11:24 +020091 <exclude>**/KustvaktServerTest.java</exclude>
92 <exclude>**/ResourceServiceTest.java</exclude>
93 <exclude>**/ResourceInfoServiceTest.java</exclude>
94 <exclude>**/PolicyServiceTest.java</exclude>
95 </excludes>
96 <includes>
97 <include>de/ids_mannheim/korap/**/*.java</include>
98 </includes>
99 </configuration>
100 </plugin>
101 <plugin>
102 <artifactId>maven-shade-plugin</artifactId>
103 <version>2.1</version>
104 <executions>
105 <!-- option 1 -->
106 <execution>
107 <id>full</id>
108 <phase>package</phase>
109 <goals>
110 <goal>shade</goal>
111 </goals>
112 <configuration>
margarethaea68a0a2017-09-21 03:09:49 +0200113 <finalName>Kustvakt-full-${project.version}</finalName>
margarethaf68daa62017-09-21 02:11:24 +0200114 <transformers>
115 <transformer
116 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
117 <mainClass>
118 de.ids_mannheim.korap.server.KustvaktServer
119 </mainClass>
120 </transformer>
121 <transformer
122 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
123 <resource>META-INF/spring.handlers
124 </resource>
125 </transformer>
126 <transformer
127 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
128 <resource>META-INF/spring.schemas
129 </resource>
130 </transformer>
131 </transformers>
132 <!-- Additional configuration. apparently there is a securityException -->
133 <filters>
134 <filter>
135 <artifact>*:*</artifact>
136 <excludes>
137 <exclude>META-INF/*.SF</exclude>
138 <exclude>META-INF/*.DSA
139 </exclude>
140 <exclude>META-INF/*.RSA
141 </exclude>
142 </excludes>
143 </filter>
144 </filters>
145 </configuration>
146 </execution>
147 </executions>
148 </plugin>
149
150 </plugins>
151 </build>
152
153 <dependencies>
154 <dependency>
155 <groupId>de.ids_mannheim.korap</groupId>
156 <artifactId>Kustvakt-core</artifactId>
margaretha894a7d72017-11-08 19:24:20 +0100157 <version>0.59.9</version>
158 <type>jar</type>
margarethaf68daa62017-09-21 02:11:24 +0200159 </dependency>
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>
margarethaf68daa62017-09-21 02:11:24 +0200164 <type>test-jar</type>
165 <scope>test</scope>
166 </dependency>
margaretha54134902017-09-27 18:43:11 +0200167 <!-- LDAP -->
168 <dependency>
169 <groupId>com.novell.ldap</groupId>
170 <artifactId>jldap</artifactId>
171 <version>4.3</version>
172 </dependency>
margaretha54134902017-09-27 18:43:11 +0200173 <dependency>
174 <groupId>com.unboundid</groupId>
175 <artifactId>unboundid-ldapsdk</artifactId>
176 <version>3.2.1</version>
177 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200178
margarethaf68daa62017-09-21 02:11:24 +0200179 <!-- Hibernate -->
180 <dependency>
181 <groupId>org.hibernate</groupId>
182 <artifactId>hibernate-entitymanager</artifactId>
183 <version>5.1.8.Final</version>
184 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200185 <dependency>
186 <groupId>org.hibernate</groupId>
187 <artifactId>hibernate-jpamodelgen</artifactId>
188 <version>5.2.12.Final</version>
189 <scope>provided</scope>
190 </dependency>
191
margaretha318fec32017-10-24 12:11:58 +0200192 <!-- MySql -->
193 <dependency>
194 <groupId>mysql</groupId>
195 <artifactId>mysql-connector-java</artifactId>
196 <version>5.1.21</version>
197 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200198
199 <!-- Jersey -->
200 <dependency>
201 <groupId>com.sun.jersey.jersey-test-framework</groupId>
202 <artifactId>jersey-test-framework-core</artifactId>
203 <version>${jersey.version}</version>
204 <scope>test</scope>
205 </dependency>
206 <dependency>
207 <groupId>com.sun.jersey.jersey-test-framework</groupId>
208 <artifactId>jersey-test-framework-grizzly</artifactId>
209 <version>${jersey.version}</version>
210 <scope>test</scope>
211 </dependency>
212
213 <!-- Spring -->
margaretha54134902017-09-27 18:43:11 +0200214 <dependency>
215 <groupId>org.springframework</groupId>
216 <artifactId>spring-jdbc</artifactId>
217 <version>${spring-framework.version}</version>
218 </dependency>
219 <dependency>
220 <groupId>org.springframework</groupId>
221 <artifactId>spring-tx</artifactId>
222 <version>${spring-framework.version}</version>
223 </dependency>
margaretha2afb97d2017-12-07 19:18:44 +0100224 <dependency>
225 <groupId>org.springframework.security</groupId>
226 <artifactId>spring-security-core</artifactId>
227 <version>4.2.3.RELEASE</version>
228 </dependency>
229 <dependency>
230 <groupId>org.springframework.security</groupId>
231 <artifactId>spring-security-web</artifactId>
232 <version>4.2.3.RELEASE</version>
233 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200234
margaretha54134902017-09-27 18:43:11 +0200235 <!-- Flyway -->
236 <dependency>
237 <groupId>org.flywaydb</groupId>
238 <artifactId>flyway-core</artifactId>
239 <version>4.0</version>
240 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200241 </dependencies>
242</project>