blob: 9394b199014d58dddc00678de3100adc1a8c1709 [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>
margaretha439ad572018-10-29 12:15:28 +01006 <version>0.61.1</version>
margarethaf68daa62017-09-21 02:11:24 +02007 <properties>
margaretha2c019fa2018-02-01 19:50:51 +01008 <java.version>1.8</java.version>
margarethaf68daa62017-09-21 02:11:24 +02009 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
margaretha3da7cd32018-10-22 17:42:52 +020010 <spring-framework.version>5.1.1.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>
margaretha2c019fa2018-02-01 19:50:51 +010069 <version>3.7.0</version>
margarethaf68daa62017-09-21 02:11:24 +020070 <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>
Akron63656052018-11-07 12:20:13 +010080 <version>2.22.1</version>
margarethaf68daa62017-09-21 02:11:24 +020081 <configuration>
Akron63656052018-11-07 12:20:13 +010082 <useSystemClassLoader>false</useSystemClassLoader>
margarethaf68daa62017-09-21 02:11:24 +020083 <reuseForks>false</reuseForks>
84 <forkCount>2</forkCount>
margarethaefc18a42018-03-01 16:01:42 +010085 <threadCount>4</threadCount>
86 <argLine>-Xmx512m -XX:MaxPermSize=256m</argLine>
margarethac7196d22018-08-27 14:20:03 +020087 <excludes>
88 <exclude>**/VCReferenceTest.java</exclude>>
89 </excludes>
margarethaf68daa62017-09-21 02:11:24 +020090 </configuration>
91 </plugin>
92 <plugin>
93 <artifactId>maven-shade-plugin</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +010094 <version>3.1.0</version>
margarethaf68daa62017-09-21 02:11:24 +020095 <executions>
96 <!-- option 1 -->
97 <execution>
98 <id>light</id>
99 <phase>package</phase>
100 <goals>
101 <goal>shade</goal>
102 </goals>
103 <configuration>
104 <finalName>
margarethaea68a0a2017-09-21 03:09:49 +0200105 Kustvakt-lite-${project.version}
margarethaf68daa62017-09-21 02:11:24 +0200106 </finalName>
107 <transformers>
108 <transformer
109 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
110 <mainClass>
111 de.ids_mannheim.korap.server.KustvaktLiteServer
112 </mainClass>
113 </transformer>
114 <transformer
115 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
116 <resource>META-INF/spring.handlers
117 </resource>
118 </transformer>
119 <transformer
120 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
121 <resource>META-INF/spring.schemas
122 </resource>
123 </transformer>
124 </transformers>
125 <!-- Additional configuration. -->
126 <!-- apparently there is a securityexception -->
127 <filters>
128 <filter>
129 <artifact>*:*</artifact>
130 <excludes>
131 <exclude>META-INF/*.SF</exclude>
132 <exclude>META-INF/*.DSA
133 </exclude>
134 <exclude>META-INF/*.RSA
135 </exclude>
136 </excludes>
137 </filter>
138 </filters>
139 </configuration>
140 </execution>
141 </executions>
142 </plugin>
143 </plugins>
144 </build>
145
146
147 <dependencies>
148 <dependency>
149 <groupId>de.ids_mannheim.korap</groupId>
150 <artifactId>Kustvakt-core</artifactId>
margaretha3da7cd32018-10-22 17:42:52 +0200151 <version>0.61.3</version>
margarethaf68daa62017-09-21 02:11:24 +0200152 </dependency>
153
154 <!-- Spring -->
155 <dependency>
156 <groupId>org.springframework</groupId>
157 <artifactId>spring-test</artifactId>
158 <version>${spring-framework.version}</version>
159 <scope>compile</scope>
160 </dependency>
161
162 <!-- Jersey test framework -->
163 <dependency>
164 <groupId>com.sun.jersey.jersey-test-framework</groupId>
165 <artifactId>jersey-test-framework-core</artifactId>
166 <version>${jersey.version}</version>
167 <scope>test</scope>
168 </dependency>
169 <dependency>
170 <groupId>com.sun.jersey.jersey-test-framework</groupId>
171 <artifactId>jersey-test-framework-grizzly</artifactId>
172 <version>${jersey.version}</version>
173 <scope>test</scope>
174 </dependency>
175 </dependencies>
Akron76b31752018-06-29 12:12:32 +0200176</project>