blob: 4215b5e6c31d6c7d4bd9d99acc9f92db9c8e288d [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-lite</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
14 <build>
15 <resources>
16 <resource>
17 <directory>src/main/resources</directory>
18 <filtering>true</filtering>
19 <includes>
20 <include>**/*.info</include>
21 <include>**/*.xml</include>
22 <include>**/*.conf</include>
23 <include>**/*.kustvakt</include>
24 <include>**/*.properties</include>
25 <include>**/*.sql</include>
26 </includes>
27 </resource>
28 </resources>
29 <testResources>
30 <testResource>
31 <directory>src/test/resources</directory>
32 <filtering>true</filtering>
33 <includes>
34 <include>**/*.prop</include>
35 <include>**/*.xml</include>
36 <include>**/*.conf</include>
37 <include>**/*.info</include>
38 <include>**/*.properties</include>
39 </includes>
40 </testResource>
41 <testResource>
42 <directory>src/main/resources</directory>
43 <filtering>true</filtering>
44 <includes>
45 <include>**/*.info</include>
46 <include>**/*.properties</include>
47 </includes>
48 </testResource>
49 </testResources>
50 <plugins>
51 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
52 <plugin>
53 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
54 <artifactId>maven-java-formatter-plugin</artifactId>
55 <version>0.4</version>
56 <configuration>
57 <configFile>${project.basedir}/Format.xml</configFile>
58 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
59 <compilerSource>${java.version}</compilerSource>
60 <compilerCompliance>${java.version}</compilerCompliance>
61 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
62 </configuration>
63 <!-- <executions> <execution> <goals> <goal>format</goal> </goals> </execution>
64 </executions> -->
65 </plugin>
66 <plugin>
67 <groupId>org.apache.maven.plugins</groupId>
68 <artifactId>maven-compiler-plugin</artifactId>
69 <version>3.3</version>
70 <configuration>
71 <compilerVersion>${java.version}</compilerVersion>
72 <source>${java.version}</source>
73 <target>${java.version}</target>
74 </configuration>
75 </plugin>
76
77 <plugin>
78 <groupId>org.apache.maven.plugins</groupId>
79 <artifactId>maven-surefire-plugin</artifactId>
80 <version>2.19.1</version>
81 <configuration>
82 <reuseForks>false</reuseForks>
83 <forkCount>2</forkCount>
84 <threadCount>10</threadCount>
85
86 <excludes>
87 <exclude>**/*APITest.java</exclude>
88 <exclude>de/ids_mannheim/korap/suites/*.java</exclude>
89 <exclude>**/KustvaktServerTest.java</exclude>
90 <exclude>**/ResourceServiceTest.java</exclude>
91 <exclude>**/ResourceInfoServiceTest.java</exclude>
92 <exclude>**/PolicyServiceTest.java</exclude>
93 </excludes>
94 <includes>
95 <include>de/ids_mannheim/korap/**/*.java</include>
96 </includes>
97 </configuration>
98 </plugin>
99 <plugin>
100 <artifactId>maven-shade-plugin</artifactId>
101 <version>2.1</version>
102 <executions>
103 <!-- option 1 -->
104 <execution>
105 <id>light</id>
106 <phase>package</phase>
107 <goals>
108 <goal>shade</goal>
109 </goals>
110 <configuration>
111 <finalName>
margarethaea68a0a2017-09-21 03:09:49 +0200112 Kustvakt-lite-${project.version}
margarethaf68daa62017-09-21 02:11:24 +0200113 </finalName>
114 <transformers>
115 <transformer
116 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
117 <mainClass>
118 de.ids_mannheim.korap.server.KustvaktLiteServer
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. -->
133 <!-- apparently there is a securityexception -->
134 <filters>
135 <filter>
136 <artifact>*:*</artifact>
137 <excludes>
138 <exclude>META-INF/*.SF</exclude>
139 <exclude>META-INF/*.DSA
140 </exclude>
141 <exclude>META-INF/*.RSA
142 </exclude>
143 </excludes>
144 </filter>
145 </filters>
146 </configuration>
147 </execution>
148 </executions>
149 </plugin>
150 </plugins>
151 </build>
152
153
154 <dependencies>
155 <dependency>
156 <groupId>de.ids_mannheim.korap</groupId>
157 <artifactId>Kustvakt-core</artifactId>
margaretha894a7d72017-11-08 19:24:20 +0100158 <version>0.59.9</version>
margarethaf68daa62017-09-21 02:11:24 +0200159 </dependency>
160 <dependency>
161 <groupId>de.ids_mannheim.korap</groupId>
162 <artifactId>Kustvakt-core</artifactId>
163 <version>0.59.8</version>
164 <type>test-jar</type>
165 <scope>test</scope>
166 </dependency>
167
168 <!-- Spring -->
169 <dependency>
170 <groupId>org.springframework</groupId>
171 <artifactId>spring-test</artifactId>
172 <version>${spring-framework.version}</version>
173 <scope>compile</scope>
174 </dependency>
175
176 <!-- Jersey test framework -->
177 <dependency>
178 <groupId>com.sun.jersey.jersey-test-framework</groupId>
179 <artifactId>jersey-test-framework-core</artifactId>
180 <version>${jersey.version}</version>
181 <scope>test</scope>
182 </dependency>
183 <dependency>
184 <groupId>com.sun.jersey.jersey-test-framework</groupId>
185 <artifactId>jersey-test-framework-grizzly</artifactId>
186 <version>${jersey.version}</version>
187 <scope>test</scope>
188 </dependency>
189 </dependencies>
190</project>