blob: 6b9ae4fb85cb16e7acd93fb703986240e8023aad [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>
margaretha2df06602018-11-14 19:10:30 +01006 <version>0.61.2</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>
margarethaf68daa62017-09-21 02:11:24 +020018 </resource>
19 </resources>
20 <testResources>
21 <testResource>
22 <directory>src/test/resources</directory>
23 <filtering>true</filtering>
24 <includes>
25 <include>**/*.prop</include>
26 <include>**/*.xml</include>
27 <include>**/*.conf</include>
28 <include>**/*.info</include>
29 <include>**/*.properties</include>
30 </includes>
31 </testResource>
32 <testResource>
33 <directory>src/main/resources</directory>
34 <filtering>true</filtering>
35 <includes>
36 <include>**/*.info</include>
37 <include>**/*.properties</include>
38 </includes>
39 </testResource>
40 </testResources>
41 <plugins>
42 <!-- Formatter plugin for Eclipse based coding conventions http://maven-java-formatter-plugin.googlecode.com/svn/site/0.4/usage.html -->
43 <plugin>
44 <groupId>com.googlecode.maven-java-formatter-plugin</groupId>
45 <artifactId>maven-java-formatter-plugin</artifactId>
46 <version>0.4</version>
47 <configuration>
48 <configFile>${project.basedir}/Format.xml</configFile>
49 <overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
50 <compilerSource>${java.version}</compilerSource>
51 <compilerCompliance>${java.version}</compilerCompliance>
52 <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
53 </configuration>
54 <!-- <executions> <execution> <goals> <goal>format</goal> </goals> </execution>
55 </executions> -->
56 </plugin>
57 <plugin>
58 <groupId>org.apache.maven.plugins</groupId>
59 <artifactId>maven-compiler-plugin</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +010060 <version>3.7.0</version>
margarethaf68daa62017-09-21 02:11:24 +020061 <configuration>
62 <compilerVersion>${java.version}</compilerVersion>
63 <source>${java.version}</source>
64 <target>${java.version}</target>
65 </configuration>
66 </plugin>
67
68 <plugin>
69 <groupId>org.apache.maven.plugins</groupId>
70 <artifactId>maven-surefire-plugin</artifactId>
Akron63656052018-11-07 12:20:13 +010071 <version>2.22.1</version>
margarethaf68daa62017-09-21 02:11:24 +020072 <configuration>
Akron63656052018-11-07 12:20:13 +010073 <useSystemClassLoader>false</useSystemClassLoader>
margarethaf68daa62017-09-21 02:11:24 +020074 <reuseForks>false</reuseForks>
75 <forkCount>2</forkCount>
margarethaefc18a42018-03-01 16:01:42 +010076 <threadCount>4</threadCount>
77 <argLine>-Xmx512m -XX:MaxPermSize=256m</argLine>
margarethac7196d22018-08-27 14:20:03 +020078 <excludes>
79 <exclude>**/VCReferenceTest.java</exclude>>
80 </excludes>
margarethaf68daa62017-09-21 02:11:24 +020081 </configuration>
82 </plugin>
83 <plugin>
84 <artifactId>maven-shade-plugin</artifactId>
margaretha2c019fa2018-02-01 19:50:51 +010085 <version>3.1.0</version>
margarethaf68daa62017-09-21 02:11:24 +020086 <executions>
87 <!-- option 1 -->
88 <execution>
89 <id>light</id>
90 <phase>package</phase>
91 <goals>
92 <goal>shade</goal>
93 </goals>
94 <configuration>
95 <finalName>
margarethaea68a0a2017-09-21 03:09:49 +020096 Kustvakt-lite-${project.version}
margarethaf68daa62017-09-21 02:11:24 +020097 </finalName>
98 <transformers>
99 <transformer
100 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
101 <mainClass>
102 de.ids_mannheim.korap.server.KustvaktLiteServer
103 </mainClass>
104 </transformer>
105 <transformer
106 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
107 <resource>META-INF/spring.handlers
108 </resource>
109 </transformer>
110 <transformer
111 implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
112 <resource>META-INF/spring.schemas
113 </resource>
114 </transformer>
115 </transformers>
116 <!-- Additional configuration. -->
117 <!-- apparently there is a securityexception -->
118 <filters>
119 <filter>
120 <artifact>*:*</artifact>
121 <excludes>
122 <exclude>META-INF/*.SF</exclude>
123 <exclude>META-INF/*.DSA
124 </exclude>
125 <exclude>META-INF/*.RSA
126 </exclude>
127 </excludes>
128 </filter>
129 </filters>
130 </configuration>
131 </execution>
132 </executions>
133 </plugin>
134 </plugins>
135 </build>
136
137
138 <dependencies>
139 <dependency>
140 <groupId>de.ids_mannheim.korap</groupId>
141 <artifactId>Kustvakt-core</artifactId>
margaretha2df06602018-11-14 19:10:30 +0100142 <version>[0.61.3,)</version>
margarethaf68daa62017-09-21 02:11:24 +0200143 </dependency>
margarethaf68daa62017-09-21 02:11:24 +0200144 <!-- Jersey test framework -->
145 <dependency>
146 <groupId>com.sun.jersey.jersey-test-framework</groupId>
147 <artifactId>jersey-test-framework-core</artifactId>
148 <version>${jersey.version}</version>
149 <scope>test</scope>
150 </dependency>
151 <dependency>
152 <groupId>com.sun.jersey.jersey-test-framework</groupId>
153 <artifactId>jersey-test-framework-grizzly</artifactId>
154 <version>${jersey.version}</version>
155 <scope>test</scope>
156 </dependency>
157 </dependencies>
Akron76b31752018-06-29 12:12:32 +0200158</project>