blob: 17df97e9afad2fe1a65e86470b201c7954b3eae3 [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>
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>
margarethadfecb4b2017-12-12 19:32:30 +010091 <exclude>de/ids_mannheim/korap/authentication/*.java</exclude>
margarethaf68daa62017-09-21 02:11:24 +020092 <exclude>**/KustvaktServerTest.java</exclude>
93 <exclude>**/ResourceServiceTest.java</exclude>
94 <exclude>**/ResourceInfoServiceTest.java</exclude>
95 <exclude>**/PolicyServiceTest.java</exclude>
96 </excludes>
97 <includes>
98 <include>de/ids_mannheim/korap/**/*.java</include>
99 </includes>
100 </configuration>
101 </plugin>
102 <plugin>
103 <artifactId>maven-shade-plugin</artifactId>
104 <version>2.1</version>
105 <executions>
106 <!-- option 1 -->
107 <execution>
108 <id>full</id>
109 <phase>package</phase>
110 <goals>
111 <goal>shade</goal>
112 </goals>
113 <configuration>
margarethaea68a0a2017-09-21 03:09:49 +0200114 <finalName>Kustvakt-full-${project.version}</finalName>
margarethaf68daa62017-09-21 02:11:24 +0200115 <transformers>
116 <transformer
117 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
118 <mainClass>
119 de.ids_mannheim.korap.server.KustvaktServer
120 </mainClass>
121 </transformer>
122 <transformer
123 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
124 <resource>META-INF/spring.handlers
125 </resource>
126 </transformer>
127 <transformer
128 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
129 <resource>META-INF/spring.schemas
130 </resource>
131 </transformer>
132 </transformers>
133 <!-- Additional configuration. apparently there is a securityException -->
134 <filters>
135 <filter>
136 <artifact>*:*</artifact>
137 <excludes>
138 <exclude>META-INF/*.SF</exclude>
139 <exclude>META-INF/*.DSA
140 </exclude>
141 <exclude>META-INF/*.RSA
142 </exclude>
143 </excludes>
144 </filter>
145 </filters>
146 </configuration>
147 </execution>
148 </executions>
149 </plugin>
150
151 </plugins>
152 </build>
153
154 <dependencies>
155 <dependency>
156 <groupId>de.ids_mannheim.korap</groupId>
157 <artifactId>Kustvakt-core</artifactId>
margaretha894a7d72017-11-08 19:24:20 +0100158 <version>0.59.9</version>
159 <type>jar</type>
margarethaf68daa62017-09-21 02:11:24 +0200160 </dependency>
161 <dependency>
162 <groupId>de.ids_mannheim.korap</groupId>
163 <artifactId>Kustvakt-core</artifactId>
margaretha894a7d72017-11-08 19:24:20 +0100164 <version>0.59.9</version>
margarethaf68daa62017-09-21 02:11:24 +0200165 <type>test-jar</type>
166 <scope>test</scope>
167 </dependency>
margaretha54134902017-09-27 18:43:11 +0200168 <!-- LDAP -->
169 <dependency>
170 <groupId>com.novell.ldap</groupId>
171 <artifactId>jldap</artifactId>
172 <version>4.3</version>
173 </dependency>
margaretha54134902017-09-27 18:43:11 +0200174 <dependency>
175 <groupId>com.unboundid</groupId>
176 <artifactId>unboundid-ldapsdk</artifactId>
177 <version>3.2.1</version>
178 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200179
margarethaf68daa62017-09-21 02:11:24 +0200180 <!-- Hibernate -->
181 <dependency>
182 <groupId>org.hibernate</groupId>
183 <artifactId>hibernate-entitymanager</artifactId>
184 <version>5.1.8.Final</version>
185 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200186 <dependency>
187 <groupId>org.hibernate</groupId>
188 <artifactId>hibernate-jpamodelgen</artifactId>
189 <version>5.2.12.Final</version>
190 <scope>provided</scope>
191 </dependency>
192
margaretha318fec32017-10-24 12:11:58 +0200193 <!-- MySql -->
194 <dependency>
195 <groupId>mysql</groupId>
196 <artifactId>mysql-connector-java</artifactId>
197 <version>5.1.21</version>
198 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200199
200 <!-- Jersey -->
201 <dependency>
202 <groupId>com.sun.jersey.jersey-test-framework</groupId>
203 <artifactId>jersey-test-framework-core</artifactId>
204 <version>${jersey.version}</version>
205 <scope>test</scope>
206 </dependency>
207 <dependency>
208 <groupId>com.sun.jersey.jersey-test-framework</groupId>
209 <artifactId>jersey-test-framework-grizzly</artifactId>
210 <version>${jersey.version}</version>
211 <scope>test</scope>
212 </dependency>
213
214 <!-- Spring -->
margaretha54134902017-09-27 18:43:11 +0200215 <dependency>
216 <groupId>org.springframework</groupId>
217 <artifactId>spring-jdbc</artifactId>
218 <version>${spring-framework.version}</version>
219 </dependency>
220 <dependency>
221 <groupId>org.springframework</groupId>
222 <artifactId>spring-tx</artifactId>
223 <version>${spring-framework.version}</version>
224 </dependency>
margaretha2afb97d2017-12-07 19:18:44 +0100225 <dependency>
226 <groupId>org.springframework.security</groupId>
227 <artifactId>spring-security-core</artifactId>
228 <version>4.2.3.RELEASE</version>
229 </dependency>
230 <dependency>
231 <groupId>org.springframework.security</groupId>
232 <artifactId>spring-security-web</artifactId>
233 <version>4.2.3.RELEASE</version>
234 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200235
margaretha54134902017-09-27 18:43:11 +0200236 <!-- Flyway -->
237 <dependency>
238 <groupId>org.flywaydb</groupId>
239 <artifactId>flyway-core</artifactId>
240 <version>4.0</version>
241 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200242 </dependencies>
243</project>