blob: 8efeb30b3cbfa001a86de48ae7f9e8f6a630af08 [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>
6 <version>0.1</version>
7 <properties>
8 <java.version>1.7</java.version>
9 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
10 <spring-framework.version>4.3.7.RELEASE</spring-framework.version>
11 <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>
73 </configuration>
74 </plugin>
75
76 <plugin>
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-surefire-plugin</artifactId>
79 <version>2.19.1</version>
80 <configuration>
81 <reuseForks>false</reuseForks>
82 <forkCount>2</forkCount>
83 <threadCount>10</threadCount>
84
85 <excludes>
86 <exclude>**/*APITest.java</exclude>
87 <exclude>de/ids_mannheim/korap/suites/*.java</exclude>
88 <exclude>**/KustvaktServerTest.java</exclude>
89 <exclude>**/ResourceServiceTest.java</exclude>
90 <exclude>**/ResourceInfoServiceTest.java</exclude>
91 <exclude>**/PolicyServiceTest.java</exclude>
92 </excludes>
93 <includes>
94 <include>de/ids_mannheim/korap/**/*.java</include>
95 </includes>
96 </configuration>
97 </plugin>
98 <plugin>
99 <artifactId>maven-shade-plugin</artifactId>
100 <version>2.1</version>
101 <executions>
102 <!-- option 1 -->
103 <execution>
104 <id>full</id>
105 <phase>package</phase>
106 <goals>
107 <goal>shade</goal>
108 </goals>
109 <configuration>
110 <finalName>Kustvakt-${project.version}-full</finalName>
111 <transformers>
112 <transformer
113 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
114 <mainClass>
115 de.ids_mannheim.korap.server.KustvaktServer
116 </mainClass>
117 </transformer>
118 <transformer
119 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
120 <resource>META-INF/spring.handlers
121 </resource>
122 </transformer>
123 <transformer
124 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
125 <resource>META-INF/spring.schemas
126 </resource>
127 </transformer>
128 </transformers>
129 <!-- Additional configuration. apparently there is a securityException -->
130 <filters>
131 <filter>
132 <artifact>*:*</artifact>
133 <excludes>
134 <exclude>META-INF/*.SF</exclude>
135 <exclude>META-INF/*.DSA
136 </exclude>
137 <exclude>META-INF/*.RSA
138 </exclude>
139 </excludes>
140 </filter>
141 </filters>
142 </configuration>
143 </execution>
144 </executions>
145 </plugin>
146
147 </plugins>
148 </build>
149
150 <dependencies>
151 <dependency>
152 <groupId>de.ids_mannheim.korap</groupId>
153 <artifactId>Kustvakt-core</artifactId>
154 <version>0.59.8</version>
155 </dependency>
156 <dependency>
157 <groupId>de.ids_mannheim.korap</groupId>
158 <artifactId>Kustvakt-core</artifactId>
159 <version>0.59.8</version>
160 <type>test-jar</type>
161 <scope>test</scope>
162 </dependency>
163
164 <!-- Hibernate -->
165 <dependency>
166 <groupId>org.hibernate</groupId>
167 <artifactId>hibernate-entitymanager</artifactId>
168 <version>5.1.8.Final</version>
169 </dependency>
170
171
172 <!-- Jersey -->
173 <dependency>
174 <groupId>com.sun.jersey.jersey-test-framework</groupId>
175 <artifactId>jersey-test-framework-core</artifactId>
176 <version>${jersey.version}</version>
177 <scope>test</scope>
178 </dependency>
179 <dependency>
180 <groupId>com.sun.jersey.jersey-test-framework</groupId>
181 <artifactId>jersey-test-framework-grizzly</artifactId>
182 <version>${jersey.version}</version>
183 <scope>test</scope>
184 </dependency>
185
186 <!-- Spring -->
187<!-- <dependency>
188 <groupId>org.springframework</groupId>
189 <artifactId>spring-test</artifactId>
190 <version>${spring-framework.version}</version>
191 <scope>compile</scope>
192 </dependency>
193 -->
194
195 </dependencies>
196</project>