blob: a70d2058887339f2b976e54504e120192b1b92a8 [file] [log] [blame]
Michael Hanlca740d72015-06-16 10:04:58 +02001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Michael Hanlca740d72015-06-16 10:04:58 +02003 <modelVersion>4.0.0</modelVersion>
Michael Hanlbadd79c2015-06-19 07:41:03 +02004 <groupId>de.ids_mannheim.korap</groupId>
Michael Hanlca740d72015-06-16 10:04:58 +02005 <artifactId>Kustvakt-core</artifactId>
Michael Hanlbadd79c2015-06-19 07:41:03 +02006 <name>Kustvakt core</name>
Michael Hanlc0ed00f2016-06-23 14:33:10 +02007 <version>0.59.6</version>
Michael Hanlbadd79c2015-06-19 07:41:03 +02008 <description>Kustvakt core, basic rest api for testing purposes and default
9 interfaces</description>
Michael Hanlca740d72015-06-16 10:04:58 +020010 <build>
Michael Hanl482f30d2015-09-25 12:39:46 +020011 <resources>
12 <resource>
13 <filtering>true</filtering>
14 <directory>src/main/resources</directory>
15 <includes>
Michael Hanldaf86602016-05-12 14:31:52 +020016 <include>**/*.info</include>
Michael Hanl482f30d2015-09-25 12:39:46 +020017 <include>**/*.xml</include>
18 <include>**/*.conf</include>
Michael Hanlc0ed00f2016-06-23 14:33:10 +020019 <include>**/*.kustvakt</include>
Michael Hanl482f30d2015-09-25 12:39:46 +020020 <include>**/*.properties</include>
Michael Hanlf0785322015-11-13 16:14:45 +010021 <include>**/*.sql</include>
Michael Hanl482f30d2015-09-25 12:39:46 +020022 </includes>
23 </resource>
24 </resources>
25 <testResources>
26 <testResource>
27 <filtering>true</filtering>
Michael Hanl59bff812015-10-27 23:10:32 +010028 <directory>src/test/resources</directory>
Michael Hanl482f30d2015-09-25 12:39:46 +020029 <includes>
30 <include>**/*.prop</include>
31 <include>**/*.xml</include>
32 <include>**/*.conf</include>
Michael Hanl8abaf9e2016-05-23 16:46:35 +020033 <include>**/*.info</include>
Michael Hanl482f30d2015-09-25 12:39:46 +020034 <include>**/*.properties</include>
35 </includes>
36 </testResource>
Michael Hanl59bff812015-10-27 23:10:32 +010037 <testResource>
38 <filtering>true</filtering>
39 <directory>src/main/resources</directory>
40 <includes>
Michael Hanl8abaf9e2016-05-23 16:46:35 +020041 <include>**/*.info</include>
Michael Hanl59bff812015-10-27 23:10:32 +010042 <include>**/*.properties</include>
Michael Hanl59bff812015-10-27 23:10:32 +010043 </includes>
44 </testResource>
Michael Hanl482f30d2015-09-25 12:39:46 +020045 </testResources>
Michael Hanlca740d72015-06-16 10:04:58 +020046 <plugins>
47 <plugin>
Michael Hanl8abaf9e2016-05-23 16:46:35 +020048 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
49 <artifactId>maven-java-formatter-plugin</artifactId>
50 <version>0.4</version>
51 <configuration>
52 <configFile>${project.basedir}/Format.xml</configFile>
53 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
54 <compilerSource>1.7</compilerSource>
55 <compilerCompliance>1.7</compilerCompliance>
56 <compilerTargetPlatform>1.7</compilerTargetPlatform>
57 </configuration>
58 </plugin>
59 <plugin>
Michael Hanl59bff812015-10-27 23:10:32 +010060 <artifactId>maven-compiler-plugin</artifactId>
61 <version>3.3</version>
62 <configuration>
63 <compilerVersion>1.7</compilerVersion>
64 <source>1.7</source>
65 <target>1.7</target>
66 </configuration>
67 </plugin>
68 <plugin>
Michael Hanl0f6ffd72015-08-27 19:23:15 +020069 <artifactId>maven-jar-plugin</artifactId>
Michael Hanl59bff812015-10-27 23:10:32 +010070 <version>2.1</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +020071 <executions>
72 <execution>
73 <phase>package</phase>
74 <goals>
75 <goal>test-jar</goal>
76 </goals>
77 </execution>
78 </executions>
79 </plugin>
80 <plugin>
Michael Hanlca740d72015-06-16 10:04:58 +020081 <artifactId>maven-surefire-plugin</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +020082 <version>2.19.1</version>
Michael Hanlca740d72015-06-16 10:04:58 +020083 <configuration>
Michael Hanldaf86602016-05-12 14:31:52 +020084 <reuseForks>false</reuseForks>
Michael Hanl45636922016-06-03 14:00:56 +020085 <forkCount>2</forkCount>
Michael Hanldaf86602016-05-12 14:31:52 +020086 <threadCount>10</threadCount>
Michael Hanlca740d72015-06-16 10:04:58 +020087 <excludes>
88 <exclude>**/*APITest.java</exclude>
Michael Hanldaf86602016-05-12 14:31:52 +020089 <exclude>de/ids_mannheim/korap/suites/*.java</exclude>
Michael Hanlca740d72015-06-16 10:04:58 +020090 </excludes>
91 <includes>
Michael Hanl3520dcd2016-02-08 19:11:37 +010092 <include>de/ids_mannheim/korap/**/*.java</include>
Michael Hanlca740d72015-06-16 10:04:58 +020093 </includes>
94 </configuration>
95 </plugin>
96 <plugin>
97 <artifactId>maven-shade-plugin</artifactId>
98 <version>2.1</version>
99 <executions>
100 <execution>
Michael Hanl482f30d2015-09-25 12:39:46 +0200101 <id>full</id>
Michael Hanlca740d72015-06-16 10:04:58 +0200102 <phase>package</phase>
103 <goals>
104 <goal>shade</goal>
105 </goals>
106 <configuration>
107 <transformers>
108 <transformer>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200109 <mainClass>de.ids_mannheim.korap.web.KustvaktServer</mainClass>
Michael Hanlca740d72015-06-16 10:04:58 +0200110 </transformer>
111 <transformer>
112 <resource>META-INF/spring.handlers</resource>
113 </transformer>
114 <transformer>
115 <resource>META-INF/spring.schemas</resource>
116 </transformer>
117 </transformers>
118 <filters>
119 <filter>
120 <artifact>*:*</artifact>
121 <excludes>
122 <exclude>META-INF/*.SF</exclude>
123 <exclude>META-INF/*.DSA</exclude>
124 <exclude>META-INF/*.RSA</exclude>
125 </excludes>
126 </filter>
127 </filters>
128 </configuration>
129 </execution>
130 </executions>
131 </plugin>
132 </plugins>
133 </build>
Michael Hanl482f30d2015-09-25 12:39:46 +0200134 <profiles>
135 <profile>
136 <id>light</id>
137 <build>
138 <plugins>
139 <plugin>
140 <artifactId>maven-shade-plugin</artifactId>
141 <version>2.1</version>
142 <executions>
143 <execution>
144 <id>light</id>
145 <phase>package</phase>
146 <goals>
147 <goal>shade</goal>
148 </goals>
149 <configuration>
Michael Hanlc0ed00f2016-06-23 14:33:10 +0200150 <finalName>Kustvakt-core-${project.version}-light</finalName>
Michael Hanl482f30d2015-09-25 12:39:46 +0200151 <transformers>
152 <transformer>
153 <mainClass>de.ids_mannheim.korap.web.KustvaktBaseServer</mainClass>
154 </transformer>
155 <transformer>
156 <resource>META-INF/spring.handlers</resource>
157 </transformer>
158 <transformer>
159 <resource>META-INF/spring.schemas</resource>
160 </transformer>
161 </transformers>
162 <filters>
163 <filter>
164 <artifact>*:*</artifact>
165 <excludes>
166 <exclude>META-INF/*.SF</exclude>
167 <exclude>META-INF/*.DSA</exclude>
168 <exclude>META-INF/*.RSA</exclude>
169 </excludes>
170 </filter>
171 </filters>
172 </configuration>
173 </execution>
174 </executions>
175 </plugin>
176 </plugins>
177 </build>
178 </profile>
179 </profiles>
Michael Hanlca740d72015-06-16 10:04:58 +0200180 <dependencies>
181 <dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200182 <groupId>com.sun.jersey.jersey-test-framework</groupId>
183 <artifactId>jersey-test-framework-core</artifactId>
184 <version>1.19</version>
185 <scope>test</scope>
186 <exclusions>
187 <exclusion>
188 <artifactId>javax.servlet-api</artifactId>
189 <groupId>javax.servlet</groupId>
190 </exclusion>
191 <exclusion>
Michael Hanldaf86602016-05-12 14:31:52 +0200192 <artifactId>jersey-servlet</artifactId>
193 <groupId>com.sun.jersey</groupId>
194 </exclusion>
195 <exclusion>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200196 <artifactId>jersey-client</artifactId>
197 <groupId>com.sun.jersey</groupId>
198 </exclusion>
199 </exclusions>
200 </dependency>
201 <dependency>
202 <groupId>com.sun.jersey.jersey-test-framework</groupId>
203 <artifactId>jersey-test-framework-grizzly</artifactId>
204 <version>1.19</version>
205 <scope>test</scope>
206 <exclusions>
207 <exclusion>
208 <artifactId>grizzly-servlet-webserver</artifactId>
209 <groupId>com.sun.grizzly</groupId>
210 </exclusion>
211 <exclusion>
212 <artifactId>jersey-grizzly</artifactId>
213 <groupId>com.sun.jersey</groupId>
214 </exclusion>
215 </exclusions>
216 </dependency>
217 <dependency>
218 <groupId>junit</groupId>
219 <artifactId>junit</artifactId>
220 <version>4.11</version>
221 <scope>test</scope>
222 </dependency>
223 <dependency>
Michael Hanl482f30d2015-09-25 12:39:46 +0200224 <groupId>org.projectlombok</groupId>
225 <artifactId>lombok</artifactId>
Michael Hanl59bff812015-10-27 23:10:32 +0100226 <version>1.16.6</version>
Michael Hanl482f30d2015-09-25 12:39:46 +0200227 <scope>provided</scope>
228 </dependency>
Michael Hanlca740d72015-06-16 10:04:58 +0200229 </dependencies>
230 <properties>
231 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
232 <maven.compiler.source>1.7</maven.compiler.source>
233 <maven.compiler.target>1.7</maven.compiler.target>
234 </properties>
235</project>
236