blob: d3e5963e27c3d4b6799affca14a11bdb0754ee30 [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 Hanl59bff812015-10-27 23:10:32 +01007 <version>0.5</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>
16 <include>**/*.prop</include>
17 <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>
32 <include>**/*.properties</include>
33 </includes>
34 </testResource>
Michael Hanl59bff812015-10-27 23:10:32 +010035 <testResource>
36 <filtering>true</filtering>
37 <directory>src/main/resources</directory>
38 <includes>
39 <include>**/*.prop</include>
40 <include>**/*.xml</include>
41 <include>**/*.conf</include>
42 <include>**/*.properties</include>
43 <include>**/*.sql</include>
44 </includes>
45 </testResource>
Michael Hanl482f30d2015-09-25 12:39:46 +020046 </testResources>
Michael Hanlca740d72015-06-16 10:04:58 +020047 <plugins>
48 <plugin>
Michael Hanl59bff812015-10-27 23:10:32 +010049 <artifactId>maven-compiler-plugin</artifactId>
50 <version>3.3</version>
51 <configuration>
52 <compilerVersion>1.7</compilerVersion>
53 <source>1.7</source>
54 <target>1.7</target>
55 </configuration>
56 </plugin>
57 <plugin>
Michael Hanl0f6ffd72015-08-27 19:23:15 +020058 <artifactId>maven-jar-plugin</artifactId>
Michael Hanl59bff812015-10-27 23:10:32 +010059 <version>2.1</version>
Michael Hanl0f6ffd72015-08-27 19:23:15 +020060 <executions>
61 <execution>
62 <phase>package</phase>
63 <goals>
64 <goal>test-jar</goal>
65 </goals>
66 </execution>
67 </executions>
68 </plugin>
69 <plugin>
Michael Hanlca740d72015-06-16 10:04:58 +020070 <artifactId>maven-surefire-plugin</artifactId>
71 <version>2.9</version>
72 <configuration>
73 <excludes>
74 <exclude>**/*APITest.java</exclude>
75 </excludes>
76 <includes>
Michael Hanl59bff812015-10-27 23:10:32 +010077 <include>**/*.java</include>
Michael Hanlca740d72015-06-16 10:04:58 +020078 </includes>
79 </configuration>
80 </plugin>
81 <plugin>
82 <artifactId>maven-shade-plugin</artifactId>
83 <version>2.1</version>
84 <executions>
85 <execution>
Michael Hanl482f30d2015-09-25 12:39:46 +020086 <id>full</id>
Michael Hanlca740d72015-06-16 10:04:58 +020087 <phase>package</phase>
88 <goals>
89 <goal>shade</goal>
90 </goals>
91 <configuration>
92 <transformers>
93 <transformer>
Michael Hanl0f6ffd72015-08-27 19:23:15 +020094 <mainClass>de.ids_mannheim.korap.web.KustvaktServer</mainClass>
Michael Hanlca740d72015-06-16 10:04:58 +020095 </transformer>
96 <transformer>
97 <resource>META-INF/spring.handlers</resource>
98 </transformer>
99 <transformer>
100 <resource>META-INF/spring.schemas</resource>
101 </transformer>
102 </transformers>
103 <filters>
104 <filter>
105 <artifact>*:*</artifact>
106 <excludes>
107 <exclude>META-INF/*.SF</exclude>
108 <exclude>META-INF/*.DSA</exclude>
109 <exclude>META-INF/*.RSA</exclude>
110 </excludes>
111 </filter>
112 </filters>
113 </configuration>
114 </execution>
115 </executions>
116 </plugin>
117 </plugins>
118 </build>
Michael Hanl482f30d2015-09-25 12:39:46 +0200119 <profiles>
120 <profile>
121 <id>light</id>
122 <build>
123 <plugins>
124 <plugin>
125 <artifactId>maven-shade-plugin</artifactId>
126 <version>2.1</version>
127 <executions>
128 <execution>
129 <id>light</id>
130 <phase>package</phase>
131 <goals>
132 <goal>shade</goal>
133 </goals>
134 <configuration>
135 <finalName>Kustvakt-core-${project.version}-light</finalName>
136 <transformers>
137 <transformer>
138 <mainClass>de.ids_mannheim.korap.web.KustvaktBaseServer</mainClass>
139 </transformer>
140 <transformer>
141 <resource>META-INF/spring.handlers</resource>
142 </transformer>
143 <transformer>
144 <resource>META-INF/spring.schemas</resource>
145 </transformer>
146 </transformers>
147 <filters>
148 <filter>
149 <artifact>*:*</artifact>
150 <excludes>
151 <exclude>META-INF/*.SF</exclude>
152 <exclude>META-INF/*.DSA</exclude>
153 <exclude>META-INF/*.RSA</exclude>
154 </excludes>
155 </filter>
156 </filters>
157 </configuration>
158 </execution>
159 </executions>
160 </plugin>
161 </plugins>
162 </build>
163 </profile>
164 </profiles>
Michael Hanlca740d72015-06-16 10:04:58 +0200165 <repositories>
166 <repository>
167 <id>codehaus-release-repo</id>
168 <name>Codehaus Release Repo</name>
169 <url>http://repository.codehaus.org</url>
170 </repository>
171 <repository>
172 <id>central</id>
173 <url>http://repo1.maven.org/maven2/</url>
174 </repository>
175 <repository>
176 <snapshots />
177 <id>sonatype</id>
178 <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
179 </repository>
180 </repositories>
181 <dependencies>
182 <dependency>
Michael Hanl0f6ffd72015-08-27 19:23:15 +0200183 <groupId>com.sun.jersey.jersey-test-framework</groupId>
184 <artifactId>jersey-test-framework-core</artifactId>
185 <version>1.19</version>
186 <scope>test</scope>
187 <exclusions>
188 <exclusion>
189 <artifactId>javax.servlet-api</artifactId>
190 <groupId>javax.servlet</groupId>
191 </exclusion>
192 <exclusion>
193 <artifactId>jersey-client</artifactId>
194 <groupId>com.sun.jersey</groupId>
195 </exclusion>
196 </exclusions>
197 </dependency>
198 <dependency>
199 <groupId>com.sun.jersey.jersey-test-framework</groupId>
200 <artifactId>jersey-test-framework-grizzly</artifactId>
201 <version>1.19</version>
202 <scope>test</scope>
203 <exclusions>
204 <exclusion>
205 <artifactId>grizzly-servlet-webserver</artifactId>
206 <groupId>com.sun.grizzly</groupId>
207 </exclusion>
208 <exclusion>
209 <artifactId>jersey-grizzly</artifactId>
210 <groupId>com.sun.jersey</groupId>
211 </exclusion>
212 </exclusions>
213 </dependency>
214 <dependency>
215 <groupId>junit</groupId>
216 <artifactId>junit</artifactId>
217 <version>4.11</version>
218 <scope>test</scope>
219 </dependency>
220 <dependency>
Michael Hanl482f30d2015-09-25 12:39:46 +0200221 <groupId>org.projectlombok</groupId>
222 <artifactId>lombok</artifactId>
Michael Hanl59bff812015-10-27 23:10:32 +0100223 <version>1.16.6</version>
Michael Hanl482f30d2015-09-25 12:39:46 +0200224 <scope>provided</scope>
225 </dependency>
Michael Hanlca740d72015-06-16 10:04:58 +0200226 </dependencies>
227 <properties>
228 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
229 <maven.compiler.source>1.7</maven.compiler.source>
230 <maven.compiler.target>1.7</maven.compiler.target>
231 </properties>
232</project>
233