blob: a1608088d71422e6e621cff4907f1ddc407d8a10 [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>
Marc Kupietzc419d5b2020-09-17 15:21:26 +02009 <version>1.3-SNAPSHOT</version>
Marc Kupietz33677732020-09-04 22:07:39 +020010
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>
Marc Kupietz67eed1c2020-09-28 21:37:16 +020036 <groupId>com.igormaznitsa</groupId>
37 <artifactId>jcp</artifactId>
38 <version>7.0.4</version>
39 <executions>
40 <execution>
41 <id>preprocess for de</id>
42 <phase>generate-sources</phase>
43 <goals>
44 <goal>preprocess</goal>
45 </goals>
46 <configuration>
47 <vars>
48 <target.language>de</target.language>
49 </vars>
50 <target>src/main/jflex/de</target>
51 </configuration>
52 </execution>
53 <execution>
54 <id>preprocess for en</id>
55 <phase>generate-sources</phase>
56 <goals>
57 <goal>preprocess</goal>
58 </goals>
59 <configuration>
60 <vars>
61 <target.language>en</target.language>
62 </vars>
63 <target>src/main/jflex/en</target>
64 </configuration>
65 </execution>
66 </executions>
67 <configuration>
68 <sources>src/main/jpc/jflex</sources>
69 <target>src/main/jflex</target>
70 <extensions>
71 <extension>jflex</extension>
72 </extensions>
73 <keepAttributes>true</keepAttributes>
74 <keepComments>false</keepComments>
75 <keepLines>true</keepLines>
76 <verbose>true</verbose>
77 <clearTarget>true</clearTarget>
78 <replaceSources>true</replaceSources>
79 <dontOverwriteSameContent>false</dontOverwriteSameContent>
80 <skip>false</skip>
81 </configuration>
82 </plugin>
83 <plugin>
Marc Kupietz33677732020-09-04 22:07:39 +020084 <groupId>org.apache.maven.plugins</groupId>
85 <artifactId>maven-surefire-plugin</artifactId>
86 <version>2.22.2</version>
87 <configuration>
88 <threadCount>15</threadCount>
89 <reuseForks>true</reuseForks>
90 <parallel>classes</parallel>
91 </configuration>
92 </plugin>
93 <plugin>
94 <groupId>org.apache.maven.plugins</groupId>
95 <artifactId>maven-compiler-plugin</artifactId>
96 <version>3.8.1</version>
97 <configuration>
Marc Kupietz33677732020-09-04 22:07:39 +020098 <showDeprecation>true</showDeprecation>
99 <annotationProcessorPaths>
100 <path>
101 <groupId>info.picocli</groupId>
102 <artifactId>picocli-codegen</artifactId>
Marc Kupietz74141b32020-10-01 23:23:18 +0200103 <version>4.5.1</version>
Marc Kupietz33677732020-09-04 22:07:39 +0200104 </path>
105 </annotationProcessorPaths>
106 <compilerArgs>
107 <arg>-Aproject=${project.groupId}/${project.artifactId}
108 </arg>
109 </compilerArgs>
110 </configuration>
111 <executions>
112 <!-- Replacing default-compile as it is treated specially by maven -->
113 <execution>
114 <id>default-compile</id>
115 <phase>none</phase>
116 </execution>
117 <!-- Replacing default-testCompile as it is treated specially by
118 maven -->
119 <execution>
120 <id>default-testCompile</id>
121 <phase>none</phase>
122 </execution>
123 <execution>
124 <id>java-compile</id>
125 <phase>compile</phase>
126 <goals>
127 <goal>compile</goal>
128 </goals>
129 </execution>
130 <execution>
131 <id>java-test-compile</id>
132 <phase>test-compile</phase>
133 <goals>
134 <goal>testCompile</goal>
135 </goals>
136 </execution>
137 </executions>
138 </plugin>
139
140 <plugin>
141 <groupId>org.apache.maven.plugins</groupId>
142 <artifactId>maven-clean-plugin</artifactId>
143 <version>3.0.0</version>
144 <configuration>
145 <excludeDefaultDirectories>true</excludeDefaultDirectories>
146 <filesets>
147 <fileset>
148 <directory>target</directory>
149 <includes>
150 <include>**</include>
151 </includes>
152 <excludes>
153 <exclude>generated-sources/jflex/**</exclude>
154 </excludes>
155 </fileset>
156 </filesets>
157 </configuration>
158 </plugin>
159 <plugin>
Marc Kupietz33677732020-09-04 22:07:39 +0200160 <groupId>org.apache.maven.plugins</groupId>
161 <artifactId>maven-jar-plugin</artifactId>
Marc Kupietz81925092020-09-07 15:16:51 +0200162 <version>3.2.0</version>
Marc Kupietz33677732020-09-04 22:07:39 +0200163 <configuration>
164 <archive>
165 <manifest>
166 <addClasspath>true</addClasspath>
167 <classpathPrefix>lib/</classpathPrefix>
Marc Kupietz751868b2020-09-25 17:59:38 +0200168 <mainClass>de.ids_mannheim.korap.tokenizer.Main</mainClass>
Marc Kupietz33677732020-09-04 22:07:39 +0200169 </manifest>
170 </archive>
171 </configuration>
172 </plugin>
173
174 <plugin>
175 <groupId>de.jflex</groupId>
176 <artifactId>jflex-maven-plugin</artifactId>
177 <version>1.8.2</version>
178 <executions>
179 <execution>
180 <goals>
181 <goal>generate</goal>
182 </goals>
183 </execution>
184 </executions>
185 </plugin>
Marc Kupietz81925092020-09-07 15:16:51 +0200186
187 <plugin>
188 <groupId>org.apache.maven.plugins</groupId>
189 <artifactId>maven-assembly-plugin</artifactId>
190 <version>3.3.0</version>
191 <configuration>
Marc Kupietzf4df7122020-09-14 10:23:53 +0200192 <appendAssemblyId>true</appendAssemblyId>
Marc Kupietz81925092020-09-07 15:16:51 +0200193 <descriptors>
194 <descriptor>src/assembly/src-distribution.xml</descriptor>
195 <descriptor>src/assembly/bin-distribution.xml</descriptor>
196 </descriptors>
197 <archive>
198 <manifest>
Marc Kupietz751868b2020-09-25 17:59:38 +0200199 <mainClass>de.ids_mannheim.korap.tokenizer.Main</mainClass>
Marc Kupietz81925092020-09-07 15:16:51 +0200200 </manifest>
201 </archive>
202 </configuration>
203 <executions>
204 <execution>
205 <id>make-assembly</id>
206 <phase>package</phase>
207 <goals>
208 <goal>single</goal>
209 </goals>
210 </execution>
211 </executions>
212 </plugin>
Marc Kupietzf4df7122020-09-14 10:23:53 +0200213 <plugin>
Marc Kupietzc419d5b2020-09-17 15:21:26 +0200214 <groupId>org.codehaus.mojo</groupId>
215 <artifactId>appassembler-maven-plugin</artifactId>
216 <version>1.10</version>
217 <executions>
218 <execution>
219 <phase>package</phase>
220 <goals>
221 <goal>assemble</goal>
222 </goals>
223 </execution>
224 </executions>
225 <configuration>
226 <binFolder>bin</binFolder>
227 <binFileExtensions>
228 <unix></unix>
229 </binFileExtensions>
230 <programs>
231 <program>
Marc Kupietz751868b2020-09-25 17:59:38 +0200232 <mainClass>de.ids_mannheim.korap.tokenizer.Main</mainClass>
Marc Kupietzc419d5b2020-09-17 15:21:26 +0200233 <id>koraptokenizer</id>
234 </program>
235 </programs>
236 </configuration>
237 </plugin>
238
Marc Kupietz33677732020-09-04 22:07:39 +0200239 </plugins>
240 </build>
241
242 <dependencies>
Marc Kupietzc419d5b2020-09-17 15:21:26 +0200243 <dependency>
244 <groupId>info.picocli</groupId>
245 <artifactId>picocli</artifactId>
Marc Kupietz74141b32020-10-01 23:23:18 +0200246 <version>4.5.1</version>
Marc Kupietzc419d5b2020-09-17 15:21:26 +0200247 </dependency>
248
Marc Kupietz81925092020-09-07 15:16:51 +0200249 <!-- https://mvnrepository.com/artifact/org.apache.opennlp/opennlp-tools -->
250 <dependency>
251 <groupId>org.apache.opennlp</groupId>
252 <artifactId>opennlp-tools</artifactId>
253 <version>1.9.3</version>
254 </dependency>
Marc Kupietz33677732020-09-04 22:07:39 +0200255 <dependency>
256 <groupId>org.apache.maven.plugins</groupId>
257 <artifactId>maven-surefire-plugin</artifactId>
258 <version>2.22.2</version>
259 </dependency>
260 <dependency>
261 <groupId>junit</groupId>
262 <artifactId>junit</artifactId>
263 <version>4.11</version>
264 </dependency>
Marc Kupietz793f85d2020-09-08 14:40:24 +0200265 <dependency>
266 <groupId>com.github.stephenc.jcip</groupId>
267 <artifactId>jcip-annotations</artifactId>
268 <version>1.0-1</version>
269 <scope>test</scope>
270 </dependency>
Marc Kupietzc419d5b2020-09-17 15:21:26 +0200271 <!-- https://mvnrepository.com/artifact/org.codehaus.mojo/appassembler-maven-plugin -->
272 <dependency>
273 <groupId>org.codehaus.mojo</groupId>
274 <artifactId>appassembler-maven-plugin</artifactId>
275 <version>2.1.0</version>
276 </dependency>
Marc Kupietz751868b2020-09-25 17:59:38 +0200277 <dependency>
278 <groupId>org.jetbrains</groupId>
279 <artifactId>annotations</artifactId>
280 <version>RELEASE</version>
281 <scope>compile</scope>
282 </dependency>
Marc Kupietz67eed1c2020-09-28 21:37:16 +0200283 <!-- https://mvnrepository.com/artifact/com.igormaznitsa/jcp -->
284 <dependency>
285 <groupId>com.igormaznitsa</groupId>
286 <artifactId>jcp</artifactId>
287 <version>7.0.4</version>
288 </dependency>
Marc Kupietz5c6df032020-09-29 22:19:38 +0200289 <dependency>
290 <groupId>io.github.classgraph</groupId>
291 <artifactId>classgraph</artifactId>
292 <version>4.8.90</version>
293 </dependency>
Marc Kupietz33677732020-09-04 22:07:39 +0200294 </dependencies>
Marc Kupietz33677732020-09-04 22:07:39 +0200295</project>