blob: d4aca6ed31ec0d6803eb2586ce616ac9b3baa5bd [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>
margarethabc9caf42017-09-21 18:52:52 +02006 <version>0.59.8</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>
margarethad3c0fc92017-10-25 15:03:32 +020079 <!-- <plugin>
80 <groupId>org.bsc.maven</groupId>
81 <artifactId>maven-processor-plugin</artifactId>
82 <version>2.2.4</version>
83 <executions>
84 <execution>
85 <id>process</id>
86 <goals>
87 <goal>process</goal>
88 </goals>
89 <phase>generate-sources</phase>
90 <configuration>
91 <processors>
92 <processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor,org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
93 </processors>
94 </configuration>
95 </execution>
96 </executions>
97 <dependencies>
98 <dependency>
99 <groupId>org.hibernate</groupId>
100 <artifactId>hibernate-jpamodelgen</artifactId>
101 <version>5.2.12.Final</version>
102 </dependency>
103 </dependencies>
104 </plugin> -->
margarethaf68daa62017-09-21 02:11:24 +0200105 <plugin>
106 <groupId>org.apache.maven.plugins</groupId>
107 <artifactId>maven-surefire-plugin</artifactId>
108 <version>2.19.1</version>
109 <configuration>
110 <reuseForks>false</reuseForks>
111 <forkCount>2</forkCount>
112 <threadCount>10</threadCount>
113
114 <excludes>
margarethaf68daa62017-09-21 02:11:24 +0200115 <exclude>de/ids_mannheim/korap/suites/*.java</exclude>
margarethaf6d5a822017-10-19 19:51:20 +0200116 <exclude>de/ids_mannheim/korap/dao/*.java</exclude>
margarethaf68daa62017-09-21 02:11:24 +0200117 <exclude>**/KustvaktServerTest.java</exclude>
118 <exclude>**/ResourceServiceTest.java</exclude>
119 <exclude>**/ResourceInfoServiceTest.java</exclude>
120 <exclude>**/PolicyServiceTest.java</exclude>
121 </excludes>
122 <includes>
123 <include>de/ids_mannheim/korap/**/*.java</include>
124 </includes>
125 </configuration>
126 </plugin>
127 <plugin>
128 <artifactId>maven-shade-plugin</artifactId>
129 <version>2.1</version>
130 <executions>
131 <!-- option 1 -->
132 <execution>
133 <id>full</id>
134 <phase>package</phase>
135 <goals>
136 <goal>shade</goal>
137 </goals>
138 <configuration>
margarethaea68a0a2017-09-21 03:09:49 +0200139 <finalName>Kustvakt-full-${project.version}</finalName>
margarethaf68daa62017-09-21 02:11:24 +0200140 <transformers>
141 <transformer
142 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
143 <mainClass>
144 de.ids_mannheim.korap.server.KustvaktServer
145 </mainClass>
146 </transformer>
147 <transformer
148 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
149 <resource>META-INF/spring.handlers
150 </resource>
151 </transformer>
152 <transformer
153 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
154 <resource>META-INF/spring.schemas
155 </resource>
156 </transformer>
157 </transformers>
158 <!-- Additional configuration. apparently there is a securityException -->
159 <filters>
160 <filter>
161 <artifact>*:*</artifact>
162 <excludes>
163 <exclude>META-INF/*.SF</exclude>
164 <exclude>META-INF/*.DSA
165 </exclude>
166 <exclude>META-INF/*.RSA
167 </exclude>
168 </excludes>
169 </filter>
170 </filters>
171 </configuration>
172 </execution>
173 </executions>
174 </plugin>
175
176 </plugins>
177 </build>
178
179 <dependencies>
180 <dependency>
181 <groupId>de.ids_mannheim.korap</groupId>
182 <artifactId>Kustvakt-core</artifactId>
183 <version>0.59.8</version>
184 </dependency>
185 <dependency>
186 <groupId>de.ids_mannheim.korap</groupId>
187 <artifactId>Kustvakt-core</artifactId>
188 <version>0.59.8</version>
189 <type>test-jar</type>
190 <scope>test</scope>
191 </dependency>
margaretha54134902017-09-27 18:43:11 +0200192 <!-- LDAP -->
193 <dependency>
194 <groupId>com.novell.ldap</groupId>
195 <artifactId>jldap</artifactId>
196 <version>4.3</version>
197 </dependency>
198 <!-- https://mvnrepository.com/artifact/com.unboundid/unboundid-ldapsdk -->
199 <dependency>
200 <groupId>com.unboundid</groupId>
201 <artifactId>unboundid-ldapsdk</artifactId>
202 <version>3.2.1</version>
203 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200204
margarethaf68daa62017-09-21 02:11:24 +0200205 <!-- Hibernate -->
206 <dependency>
207 <groupId>org.hibernate</groupId>
208 <artifactId>hibernate-entitymanager</artifactId>
209 <version>5.1.8.Final</version>
210 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200211 <dependency>
212 <groupId>org.hibernate</groupId>
213 <artifactId>hibernate-jpamodelgen</artifactId>
214 <version>5.2.12.Final</version>
215 <scope>provided</scope>
216 </dependency>
217
margaretha318fec32017-10-24 12:11:58 +0200218 <!-- MySql -->
219 <dependency>
220 <groupId>mysql</groupId>
221 <artifactId>mysql-connector-java</artifactId>
222 <version>5.1.21</version>
223 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200224
225 <!-- Jersey -->
226 <dependency>
227 <groupId>com.sun.jersey.jersey-test-framework</groupId>
228 <artifactId>jersey-test-framework-core</artifactId>
229 <version>${jersey.version}</version>
230 <scope>test</scope>
231 </dependency>
232 <dependency>
233 <groupId>com.sun.jersey.jersey-test-framework</groupId>
234 <artifactId>jersey-test-framework-grizzly</artifactId>
235 <version>${jersey.version}</version>
236 <scope>test</scope>
237 </dependency>
238
239 <!-- Spring -->
margaretha54134902017-09-27 18:43:11 +0200240 <dependency>
241 <groupId>org.springframework</groupId>
242 <artifactId>spring-jdbc</artifactId>
243 <version>${spring-framework.version}</version>
244 </dependency>
245 <dependency>
246 <groupId>org.springframework</groupId>
247 <artifactId>spring-tx</artifactId>
248 <version>${spring-framework.version}</version>
249 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200250
margaretha54134902017-09-27 18:43:11 +0200251 <!-- Flyway -->
252 <dependency>
253 <groupId>org.flywaydb</groupId>
254 <artifactId>flyway-core</artifactId>
255 <version>4.0</version>
256 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200257 </dependencies>
258</project>