blob: a1e95b9f38bb4caba7a265498a7abc3ef11c0f70 [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>
margarethae413ffa2018-06-12 13:47:51 +02006 <version>0.60.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>
margaretha2c019fa2018-02-01 19:50:51 +010010 <spring-framework.version>5.0.3.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>
80 <version>2.19.1</version>
81 <configuration>
82 <reuseForks>false</reuseForks>
83 <forkCount>2</forkCount>
margarethaefc18a42018-03-01 16:01:42 +010084 <threadCount>4</threadCount>
85 <argLine>-Xmx512m -XX:MaxPermSize=256m</argLine>
margarethaf68daa62017-09-21 02:11:24 +020086 <includes>
87 <include>de/ids_mannheim/korap/**/*.java</include>
88 </includes>
89 </configuration>
90 </plugin>
91 <plugin>
92 <artifactId>maven-shade-plugin</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +010093 <version>3.1.0</version>
margarethaf68daa62017-09-21 02:11:24 +020094 <executions>
95 <!-- option 1 -->
96 <execution>
97 <id>light</id>
98 <phase>package</phase>
99 <goals>
100 <goal>shade</goal>
101 </goals>
102 <configuration>
103 <finalName>
margarethaea68a0a2017-09-21 03:09:49 +0200104 Kustvakt-lite-${project.version}
margarethaf68daa62017-09-21 02:11:24 +0200105 </finalName>
106 <transformers>
107 <transformer
108 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
109 <mainClass>
110 de.ids_mannheim.korap.server.KustvaktLiteServer
111 </mainClass>
112 </transformer>
113 <transformer
114 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
115 <resource>META-INF/spring.handlers
116 </resource>
117 </transformer>
118 <transformer
119 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
120 <resource>META-INF/spring.schemas
121 </resource>
122 </transformer>
123 </transformers>
124 <!-- Additional configuration. -->
125 <!-- apparently there is a securityexception -->
126 <filters>
127 <filter>
128 <artifact>*:*</artifact>
129 <excludes>
130 <exclude>META-INF/*.SF</exclude>
131 <exclude>META-INF/*.DSA
132 </exclude>
133 <exclude>META-INF/*.RSA
134 </exclude>
135 </excludes>
136 </filter>
137 </filters>
138 </configuration>
139 </execution>
140 </executions>
141 </plugin>
142 </plugins>
143 </build>
144
145
146 <dependencies>
147 <dependency>
148 <groupId>de.ids_mannheim.korap</groupId>
149 <artifactId>Kustvakt-core</artifactId>
margaretha5225ed02018-06-25 18:38:40 +0200150 <version>0.60.4</version>
margarethaf68daa62017-09-21 02:11:24 +0200151 </dependency>
152
153 <!-- Spring -->
154 <dependency>
155 <groupId>org.springframework</groupId>
156 <artifactId>spring-test</artifactId>
157 <version>${spring-framework.version}</version>
158 <scope>compile</scope>
159 </dependency>
160
161 <!-- Jersey test framework -->
162 <dependency>
163 <groupId>com.sun.jersey.jersey-test-framework</groupId>
164 <artifactId>jersey-test-framework-core</artifactId>
165 <version>${jersey.version}</version>
166 <scope>test</scope>
167 </dependency>
168 <dependency>
169 <groupId>com.sun.jersey.jersey-test-framework</groupId>
170 <artifactId>jersey-test-framework-grizzly</artifactId>
171 <version>${jersey.version}</version>
172 <scope>test</scope>
173 </dependency>
174 </dependencies>
175</project>