blob: fda28dcee4c971696fb17fef6ab17a2bddb78324 [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>
14 </properties>
15
16 <build>
17 <resources>
18 <resource>
19 <directory>src/main/resources</directory>
20 <excludes>
21 <!--<exclude>**/*.properties</exclude>-->
22 <exclude>**/*.sh</exclude>
23 <exclude>**/*.cfg</exclude>
24 </excludes>
25 </resource>
26 </resources>
27 <testResources>
28 <testResource>
29 <directory>src/test/resources</directory>
30 </testResource>
31 </testResources>
32 <plugins>
33 <plugin>
34 <groupId>org.apache.maven.plugins</groupId>
35 <artifactId>maven-surefire-plugin</artifactId>
36 <version>2.22.2</version>
37 <configuration>
38 <threadCount>15</threadCount>
39 <reuseForks>true</reuseForks>
40 <parallel>classes</parallel>
41 </configuration>
42 </plugin>
43 <plugin>
44 <groupId>org.apache.maven.plugins</groupId>
45 <artifactId>maven-compiler-plugin</artifactId>
46 <version>3.8.1</version>
47 <configuration>
Marc Kupietz33677732020-09-04 22:07:39 +020048 <showDeprecation>true</showDeprecation>
49 <annotationProcessorPaths>
50 <path>
51 <groupId>info.picocli</groupId>
52 <artifactId>picocli-codegen</artifactId>
53 <version>4.2.0</version>
54 </path>
55 </annotationProcessorPaths>
56 <compilerArgs>
57 <arg>-Aproject=${project.groupId}/${project.artifactId}
58 </arg>
59 </compilerArgs>
60 </configuration>
61 <executions>
62 <!-- Replacing default-compile as it is treated specially by maven -->
63 <execution>
64 <id>default-compile</id>
65 <phase>none</phase>
66 </execution>
67 <!-- Replacing default-testCompile as it is treated specially by
68 maven -->
69 <execution>
70 <id>default-testCompile</id>
71 <phase>none</phase>
72 </execution>
73 <execution>
74 <id>java-compile</id>
75 <phase>compile</phase>
76 <goals>
77 <goal>compile</goal>
78 </goals>
79 </execution>
80 <execution>
81 <id>java-test-compile</id>
82 <phase>test-compile</phase>
83 <goals>
84 <goal>testCompile</goal>
85 </goals>
86 </execution>
87 </executions>
88 </plugin>
89
90 <plugin>
91 <groupId>org.apache.maven.plugins</groupId>
92 <artifactId>maven-clean-plugin</artifactId>
93 <version>3.0.0</version>
94 <configuration>
95 <excludeDefaultDirectories>true</excludeDefaultDirectories>
96 <filesets>
97 <fileset>
98 <directory>target</directory>
99 <includes>
100 <include>**</include>
101 </includes>
102 <excludes>
103 <exclude>generated-sources/jflex/**</exclude>
104 </excludes>
105 </fileset>
106 </filesets>
107 </configuration>
108 </plugin>
109 <plugin>
Marc Kupietz33677732020-09-04 22:07:39 +0200110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-jar-plugin</artifactId>
Marc Kupietz81925092020-09-07 15:16:51 +0200112 <version>3.2.0</version>
113 <executions>
114 <execution>
115 <id>default-jar</id>
116 <!-- use assembly plugin to build the jar -->
117 <phase>none</phase>
118 <configuration>
119 <finalName>unwanted</finalName>
120 <classifier>unwanted</classifier>
121 </configuration>
122 </execution>
123 </executions>
Marc Kupietz33677732020-09-04 22:07:39 +0200124 <configuration>
125 <archive>
126 <manifest>
127 <addClasspath>true</addClasspath>
128 <classpathPrefix>lib/</classpathPrefix>
129 <mainClass>de.ids_mannheim.korap.tokenizer.KorAPTokenizerImpl</mainClass>
130 </manifest>
131 </archive>
132 </configuration>
133 </plugin>
134
135 <plugin>
136 <groupId>de.jflex</groupId>
137 <artifactId>jflex-maven-plugin</artifactId>
138 <version>1.8.2</version>
139 <executions>
140 <execution>
141 <goals>
142 <goal>generate</goal>
143 </goals>
144 </execution>
145 </executions>
146 </plugin>
Marc Kupietz81925092020-09-07 15:16:51 +0200147
148 <plugin>
149 <groupId>org.apache.maven.plugins</groupId>
150 <artifactId>maven-assembly-plugin</artifactId>
151 <version>3.3.0</version>
152 <configuration>
153 <appendAssemblyId>false</appendAssemblyId>
154 <descriptors>
155 <descriptor>src/assembly/src-distribution.xml</descriptor>
156 <descriptor>src/assembly/bin-distribution.xml</descriptor>
157 </descriptors>
158 <archive>
159 <manifest>
160 <mainClass>de.ids_mannheim.korap.tokenizer.KorAPTokenizerImpl</mainClass>
161 </manifest>
162 </archive>
163 </configuration>
164 <executions>
165 <execution>
166 <id>make-assembly</id>
167 <phase>package</phase>
168 <goals>
169 <goal>single</goal>
170 </goals>
171 </execution>
172 </executions>
173 </plugin>
Marc Kupietz33677732020-09-04 22:07:39 +0200174 </plugins>
175 </build>
176
177 <dependencies>
Marc Kupietz81925092020-09-07 15:16:51 +0200178 <!-- https://mvnrepository.com/artifact/org.apache.opennlp/opennlp-tools -->
179 <dependency>
180 <groupId>org.apache.opennlp</groupId>
181 <artifactId>opennlp-tools</artifactId>
182 <version>1.9.3</version>
183 </dependency>
Marc Kupietz33677732020-09-04 22:07:39 +0200184 <dependency>
185 <groupId>org.apache.maven.plugins</groupId>
186 <artifactId>maven-surefire-plugin</artifactId>
187 <version>2.22.2</version>
188 </dependency>
189 <dependency>
190 <groupId>junit</groupId>
191 <artifactId>junit</artifactId>
192 <version>4.11</version>
193 </dependency>
194 </dependencies>
195
196</project>