blob: a62612319592d407fb5c4e82347f014cac7e1442 [file] [log] [blame]
Marc Kupietz33677732020-09-04 22:07:39 +02001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xmlns="http://maven.apache.org/POM/4.0.0"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
6
7 <groupId>groupId</groupId>
8 <artifactId>KorAP-Tokenizer</artifactId>
9 <version>1.2-SNAPSHOT</version>
10
11 <properties>
12 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13 <jackson.version>[2.10.3,)</jackson.version>
Marc Kupietzb920f852020-09-08 14:36:01 +020014 <maven.compiler.target>1.8</maven.compiler.target>
15 <maven.compiler.source>1.8</maven.compiler.source>
Marc Kupietz33677732020-09-04 22:07:39 +020016 </properties>
17
18 <build>
19 <resources>
20 <resource>
21 <directory>src/main/resources</directory>
22 <excludes>
23 <!--<exclude>**/*.properties</exclude>-->
24 <exclude>**/*.sh</exclude>
25 <exclude>**/*.cfg</exclude>
26 </excludes>
27 </resource>
28 </resources>
29 <testResources>
30 <testResource>
31 <directory>src/test/resources</directory>
32 </testResource>
33 </testResources>
34 <plugins>
35 <plugin>
36 <groupId>org.apache.maven.plugins</groupId>
37 <artifactId>maven-surefire-plugin</artifactId>
38 <version>2.22.2</version>
39 <configuration>
40 <threadCount>15</threadCount>
41 <reuseForks>true</reuseForks>
42 <parallel>classes</parallel>
43 </configuration>
44 </plugin>
45 <plugin>
46 <groupId>org.apache.maven.plugins</groupId>
47 <artifactId>maven-compiler-plugin</artifactId>
48 <version>3.8.1</version>
49 <configuration>
Marc Kupietz33677732020-09-04 22:07:39 +020050 <showDeprecation>true</showDeprecation>
51 <annotationProcessorPaths>
52 <path>
53 <groupId>info.picocli</groupId>
54 <artifactId>picocli-codegen</artifactId>
55 <version>4.2.0</version>
56 </path>
57 </annotationProcessorPaths>
58 <compilerArgs>
59 <arg>-Aproject=${project.groupId}/${project.artifactId}
60 </arg>
61 </compilerArgs>
62 </configuration>
63 <executions>
64 <!-- Replacing default-compile as it is treated specially by maven -->
65 <execution>
66 <id>default-compile</id>
67 <phase>none</phase>
68 </execution>
69 <!-- Replacing default-testCompile as it is treated specially by
70 maven -->
71 <execution>
72 <id>default-testCompile</id>
73 <phase>none</phase>
74 </execution>
75 <execution>
76 <id>java-compile</id>
77 <phase>compile</phase>
78 <goals>
79 <goal>compile</goal>
80 </goals>
81 </execution>
82 <execution>
83 <id>java-test-compile</id>
84 <phase>test-compile</phase>
85 <goals>
86 <goal>testCompile</goal>
87 </goals>
88 </execution>
89 </executions>
90 </plugin>
91
92 <plugin>
93 <groupId>org.apache.maven.plugins</groupId>
94 <artifactId>maven-clean-plugin</artifactId>
95 <version>3.0.0</version>
96 <configuration>
97 <excludeDefaultDirectories>true</excludeDefaultDirectories>
98 <filesets>
99 <fileset>
100 <directory>target</directory>
101 <includes>
102 <include>**</include>
103 </includes>
104 <excludes>
105 <exclude>generated-sources/jflex/**</exclude>
106 </excludes>
107 </fileset>
108 </filesets>
109 </configuration>
110 </plugin>
111 <plugin>
Marc Kupietz33677732020-09-04 22:07:39 +0200112 <groupId>org.apache.maven.plugins</groupId>
113 <artifactId>maven-jar-plugin</artifactId>
Marc Kupietz81925092020-09-07 15:16:51 +0200114 <version>3.2.0</version>
115 <executions>
116 <execution>
117 <id>default-jar</id>
118 <!-- use assembly plugin to build the jar -->
119 <phase>none</phase>
120 <configuration>
121 <finalName>unwanted</finalName>
122 <classifier>unwanted</classifier>
123 </configuration>
124 </execution>
125 </executions>
Marc Kupietz33677732020-09-04 22:07:39 +0200126 <configuration>
127 <archive>
128 <manifest>
129 <addClasspath>true</addClasspath>
130 <classpathPrefix>lib/</classpathPrefix>
131 <mainClass>de.ids_mannheim.korap.tokenizer.KorAPTokenizerImpl</mainClass>
132 </manifest>
133 </archive>
134 </configuration>
135 </plugin>
136
137 <plugin>
138 <groupId>de.jflex</groupId>
139 <artifactId>jflex-maven-plugin</artifactId>
140 <version>1.8.2</version>
141 <executions>
142 <execution>
143 <goals>
144 <goal>generate</goal>
145 </goals>
146 </execution>
147 </executions>
148 </plugin>
Marc Kupietz81925092020-09-07 15:16:51 +0200149
150 <plugin>
151 <groupId>org.apache.maven.plugins</groupId>
152 <artifactId>maven-assembly-plugin</artifactId>
153 <version>3.3.0</version>
154 <configuration>
155 <appendAssemblyId>false</appendAssemblyId>
156 <descriptors>
157 <descriptor>src/assembly/src-distribution.xml</descriptor>
158 <descriptor>src/assembly/bin-distribution.xml</descriptor>
159 </descriptors>
160 <archive>
161 <manifest>
162 <mainClass>de.ids_mannheim.korap.tokenizer.KorAPTokenizerImpl</mainClass>
163 </manifest>
164 </archive>
165 </configuration>
166 <executions>
167 <execution>
168 <id>make-assembly</id>
169 <phase>package</phase>
170 <goals>
171 <goal>single</goal>
172 </goals>
173 </execution>
174 </executions>
175 </plugin>
Marc Kupietz33677732020-09-04 22:07:39 +0200176 </plugins>
177 </build>
178
179 <dependencies>
Marc Kupietz81925092020-09-07 15:16:51 +0200180 <!-- https://mvnrepository.com/artifact/org.apache.opennlp/opennlp-tools -->
181 <dependency>
182 <groupId>org.apache.opennlp</groupId>
183 <artifactId>opennlp-tools</artifactId>
184 <version>1.9.3</version>
185 </dependency>
Marc Kupietz33677732020-09-04 22:07:39 +0200186 <dependency>
187 <groupId>org.apache.maven.plugins</groupId>
188 <artifactId>maven-surefire-plugin</artifactId>
189 <version>2.22.2</version>
190 </dependency>
191 <dependency>
192 <groupId>junit</groupId>
193 <artifactId>junit</artifactId>
194 <version>4.11</version>
195 </dependency>
Marc Kupietz793f85d2020-09-08 14:40:24 +0200196 <dependency>
197 <groupId>com.github.stephenc.jcip</groupId>
198 <artifactId>jcip-annotations</artifactId>
199 <version>1.0-1</version>
200 <scope>test</scope>
201 </dependency>
Marc Kupietz33677732020-09-04 22:07:39 +0200202 </dependencies>
Marc Kupietz33677732020-09-04 22:07:39 +0200203</project>