blob: 7d476e4530c07dd5be278192c27463c288503589 [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>
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>
157 <version>0.59.8</version>
158 </dependency>
159 <dependency>
160 <groupId>de.ids_mannheim.korap</groupId>
161 <artifactId>Kustvakt-core</artifactId>
162 <version>0.59.8</version>
163 <type>test-jar</type>
164 <scope>test</scope>
165 </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>
182 <version>5.1.8.Final</version>
183 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200184 <dependency>
185 <groupId>org.hibernate</groupId>
186 <artifactId>hibernate-jpamodelgen</artifactId>
187 <version>5.2.12.Final</version>
188 <scope>provided</scope>
189 </dependency>
190
margaretha318fec32017-10-24 12:11:58 +0200191 <!-- MySql -->
192 <dependency>
193 <groupId>mysql</groupId>
194 <artifactId>mysql-connector-java</artifactId>
195 <version>5.1.21</version>
196 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200197
198 <!-- Jersey -->
199 <dependency>
200 <groupId>com.sun.jersey.jersey-test-framework</groupId>
201 <artifactId>jersey-test-framework-core</artifactId>
202 <version>${jersey.version}</version>
203 <scope>test</scope>
204 </dependency>
205 <dependency>
206 <groupId>com.sun.jersey.jersey-test-framework</groupId>
207 <artifactId>jersey-test-framework-grizzly</artifactId>
208 <version>${jersey.version}</version>
209 <scope>test</scope>
210 </dependency>
211
212 <!-- Spring -->
margaretha54134902017-09-27 18:43:11 +0200213 <dependency>
214 <groupId>org.springframework</groupId>
215 <artifactId>spring-jdbc</artifactId>
216 <version>${spring-framework.version}</version>
217 </dependency>
218 <dependency>
219 <groupId>org.springframework</groupId>
220 <artifactId>spring-tx</artifactId>
221 <version>${spring-framework.version}</version>
222 </dependency>
margarethad3c0fc92017-10-25 15:03:32 +0200223
margaretha54134902017-09-27 18:43:11 +0200224 <!-- Flyway -->
225 <dependency>
226 <groupId>org.flywaydb</groupId>
227 <artifactId>flyway-core</artifactId>
228 <version>4.0</version>
229 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200230 </dependencies>
231</project>