blob: 917bfcb9825eb2ad4086b6aa810793905cf17cde [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 Hanl8abaf9e2016-05-23 16:46:35 +02007 <version>0.59.1</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>
19 <include>**/*.properties</include>
Michael Hanlf0785322015-11-13 16:14:45 +010020 <include>**/*.sql</include>
Michael Hanl482f30d2015-09-25 12:39:46 +020021 </includes>
22 </resource>
23 </resources>
24 <testResources>
25 <testResource>
26 <filtering>true</filtering>
Michael Hanl59bff812015-10-27 23:10:32 +010027 <directory>src/test/resources</directory>
Michael Hanl482f30d2015-09-25 12:39:46 +020028 <includes>
29 <include>**/*.prop</include>
30 <include>**/*.xml</include>
31 <include>**/*.conf</include>
Michael Hanl8abaf9e2016-05-23 16:46:35 +020032 <include>**/*.info</include>
Michael Hanl482f30d2015-09-25 12:39:46 +020033 <include>**/*.properties</include>
34 </includes>
35 </testResource>
Michael Hanl59bff812015-10-27 23:10:32 +010036 <testResource>
37 <filtering>true</filtering>
38 <directory>src/main/resources</directory>
39 <includes>
Michael Hanl8abaf9e2016-05-23 16:46:35 +020040 <include>**/*.info</include>
Michael Hanl59bff812015-10-27 23:10:32 +010041 <include>**/*.properties</include>
Michael Hanl59bff812015-10-27 23:10:32 +010042 </includes>
43 </testResource>
Michael Hanl482f30d2015-09-25 12:39:46 +020044 </testResources>
Michael Hanlca740d72015-06-16 10:04:58 +020045 <plugins>
46 <plugin>
Michael Hanl8abaf9e2016-05-23 16:46:35 +020047 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
48 <artifactId>maven-java-formatter-plugin</artifactId>
49 <version>0.4</version>
50 <configuration>
51 <configFile>${project.basedir}/Format.xml</configFile>
52 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
53 <compilerSource>1.7</compilerSource>
54 <compilerCompliance>1.7</compilerCompliance>
55 <compilerTargetPlatform>1.7</compilerTargetPlatform>
56 </configuration>
57 </plugin>
58 <plugin>
Michael Hanl59bff812015-10-27 23:10:32 +010059 <artifactId>maven-compiler-plugin</artifactId>
60 <version>3.3</version>
61 <configuration>
62 <compilerVersion>1.7</compilerVersion>
63 <source>1.7</source>
64 <target>1.7</target>
65 </configuration>
66 </plugin>
67 <plugin>
Michael Hanl0f6ffd72015-08-27 19:23:15 +020068 <artifactId>maven-jar-plugin</artifactId>
Michael Hanl59bff812015-10-27 23:10:32 +010069 <version>2.1</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +020070 <executions>
71 <execution>
72 <phase>package</phase>
73 <goals>
74 <goal>test-jar</goal>
75 </goals>
76 </execution>
77 </executions>
78 </plugin>
79 <plugin>
Michael Hanlca740d72015-06-16 10:04:58 +020080 <artifactId>maven-surefire-plugin</artifactId>
Michael Hanldaf86602016-05-12 14:31:52 +020081 <version>2.19.1</version>
Michael Hanlca740d72015-06-16 10:04:58 +020082 <configuration>
Michael Hanldaf86602016-05-12 14:31:52 +020083 <reuseForks>false</reuseForks>
84 <forkCount>1</forkCount>
85 <threadCount>10</threadCount>
Michael Hanlca740d72015-06-16 10:04:58 +020086 <excludes>
87 <exclude>**/*APITest.java</exclude>
Michael Hanldaf86602016-05-12 14:31:52 +020088 <exclude>de/ids_mannheim/korap/suites/*.java</exclude>
Michael Hanlca740d72015-06-16 10:04:58 +020089 </excludes>
90 <includes>
Michael Hanl3520dcd2016-02-08 19:11:37 +010091 <include>de/ids_mannheim/korap/**/*.java</include>
Michael Hanlca740d72015-06-16 10:04:58 +020092 </includes>
93 </configuration>
94 </plugin>
95 <plugin>
96 <artifactId>maven-shade-plugin</artifactId>
97 <version>2.1</version>
98 <executions>
99 <execution>
Michael Hanl482f30d2015-09-25 12:39:46 +0200100 <id>full</id>
Michael Hanlca740d72015-06-16 10:04:58 +0200101 <phase>package</phase>
102 <goals>
103 <goal>shade</goal>
104 </goals>
105 <configuration>
106 <transformers>
107 <transformer>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200108 <mainClass>de.ids_mannheim.korap.web.KustvaktServer</mainClass>
Michael Hanlca740d72015-06-16 10:04:58 +0200109 </transformer>
110 <transformer>
111 <resource>META-INF/spring.handlers</resource>
112 </transformer>
113 <transformer>
114 <resource>META-INF/spring.schemas</resource>
115 </transformer>
116 </transformers>
117 <filters>
118 <filter>
119 <artifact>*:*</artifact>
120 <excludes>
121 <exclude>META-INF/*.SF</exclude>
122 <exclude>META-INF/*.DSA</exclude>
123 <exclude>META-INF/*.RSA</exclude>
124 </excludes>
125 </filter>
126 </filters>
127 </configuration>
128 </execution>
129 </executions>
130 </plugin>
131 </plugins>
132 </build>
Michael Hanl482f30d2015-09-25 12:39:46 +0200133 <profiles>
134 <profile>
135 <id>light</id>
136 <build>
137 <plugins>
138 <plugin>
139 <artifactId>maven-shade-plugin</artifactId>
140 <version>2.1</version>
141 <executions>
142 <execution>
143 <id>light</id>
144 <phase>package</phase>
145 <goals>
146 <goal>shade</goal>
147 </goals>
148 <configuration>
Michael Hanl8abaf9e2016-05-23 16:46:35 +0200149 <finalName>Kustvakt-core-${project.version}-light</finalName>
Michael Hanl482f30d2015-09-25 12:39:46 +0200150 <transformers>
151 <transformer>
152 <mainClass>de.ids_mannheim.korap.web.KustvaktBaseServer</mainClass>
153 </transformer>
154 <transformer>
155 <resource>META-INF/spring.handlers</resource>
156 </transformer>
157 <transformer>
158 <resource>META-INF/spring.schemas</resource>
159 </transformer>
160 </transformers>
161 <filters>
162 <filter>
163 <artifact>*:*</artifact>
164 <excludes>
165 <exclude>META-INF/*.SF</exclude>
166 <exclude>META-INF/*.DSA</exclude>
167 <exclude>META-INF/*.RSA</exclude>
168 </excludes>
169 </filter>
170 </filters>
171 </configuration>
172 </execution>
173 </executions>
174 </plugin>
175 </plugins>
176 </build>
177 </profile>
178 </profiles>
Michael Hanlca740d72015-06-16 10:04:58 +0200179 <dependencies>
180 <dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200181 <groupId>com.sun.jersey.jersey-test-framework</groupId>
182 <artifactId>jersey-test-framework-core</artifactId>
183 <version>1.19</version>
184 <scope>test</scope>
185 <exclusions>
186 <exclusion>
187 <artifactId>javax.servlet-api</artifactId>
188 <groupId>javax.servlet</groupId>
189 </exclusion>
190 <exclusion>
Michael Hanldaf86602016-05-12 14:31:52 +0200191 <artifactId>jersey-servlet</artifactId>
192 <groupId>com.sun.jersey</groupId>
193 </exclusion>
194 <exclusion>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200195 <artifactId>jersey-client</artifactId>
196 <groupId>com.sun.jersey</groupId>
197 </exclusion>
198 </exclusions>
199 </dependency>
200 <dependency>
201 <groupId>com.sun.jersey.jersey-test-framework</groupId>
202 <artifactId>jersey-test-framework-grizzly</artifactId>
203 <version>1.19</version>
204 <scope>test</scope>
205 <exclusions>
206 <exclusion>
207 <artifactId>grizzly-servlet-webserver</artifactId>
208 <groupId>com.sun.grizzly</groupId>
209 </exclusion>
210 <exclusion>
211 <artifactId>jersey-grizzly</artifactId>
212 <groupId>com.sun.jersey</groupId>
213 </exclusion>
214 </exclusions>
215 </dependency>
216 <dependency>
217 <groupId>junit</groupId>
218 <artifactId>junit</artifactId>
219 <version>4.11</version>
220 <scope>test</scope>
221 </dependency>
222 <dependency>
Michael Hanl482f30d2015-09-25 12:39:46 +0200223 <groupId>org.projectlombok</groupId>
224 <artifactId>lombok</artifactId>
Michael Hanl59bff812015-10-27 23:10:32 +0100225 <version>1.16.6</version>
Michael Hanl482f30d2015-09-25 12:39:46 +0200226 <scope>provided</scope>
227 </dependency>
Michael Hanlca740d72015-06-16 10:04:58 +0200228 </dependencies>
229 <properties>
230 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
231 <maven.compiler.source>1.7</maven.compiler.source>
232 <maven.compiler.target>1.7</maven.compiler.target>
233 </properties>
234</project>
235