blob: 4933cf99332fd906beaebde58207529a6dd05767 [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 Kupietzde949de2020-09-14 10:26:05 +02009 <version>1.3-${git.commit.id.abbrev}</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>
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>
Marc Kupietz33677732020-09-04 22:07:39 +0200115 <configuration>
116 <archive>
117 <manifest>
118 <addClasspath>true</addClasspath>
119 <classpathPrefix>lib/</classpathPrefix>
120 <mainClass>de.ids_mannheim.korap.tokenizer.KorAPTokenizerImpl</mainClass>
121 </manifest>
122 </archive>
123 </configuration>
124 </plugin>
125
126 <plugin>
127 <groupId>de.jflex</groupId>
128 <artifactId>jflex-maven-plugin</artifactId>
129 <version>1.8.2</version>
130 <executions>
131 <execution>
132 <goals>
133 <goal>generate</goal>
134 </goals>
135 </execution>
136 </executions>
137 </plugin>
Marc Kupietz81925092020-09-07 15:16:51 +0200138
139 <plugin>
140 <groupId>org.apache.maven.plugins</groupId>
141 <artifactId>maven-assembly-plugin</artifactId>
142 <version>3.3.0</version>
143 <configuration>
Marc Kupietzf4df7122020-09-14 10:23:53 +0200144 <appendAssemblyId>true</appendAssemblyId>
Marc Kupietz81925092020-09-07 15:16:51 +0200145 <descriptors>
146 <descriptor>src/assembly/src-distribution.xml</descriptor>
147 <descriptor>src/assembly/bin-distribution.xml</descriptor>
148 </descriptors>
149 <archive>
150 <manifest>
151 <mainClass>de.ids_mannheim.korap.tokenizer.KorAPTokenizerImpl</mainClass>
152 </manifest>
153 </archive>
154 </configuration>
155 <executions>
156 <execution>
157 <id>make-assembly</id>
158 <phase>package</phase>
159 <goals>
160 <goal>single</goal>
161 </goals>
162 </execution>
163 </executions>
164 </plugin>
Marc Kupietzf4df7122020-09-14 10:23:53 +0200165 <plugin>
166 <groupId>pl.project13.maven</groupId>
167 <artifactId>git-commit-id-plugin</artifactId>
168 <version>4.0.2</version>
169 <executions>
170 <execution>
171 <phase>validate</phase>
172 <goals>
173 <goal>revision</goal>
174 </goals>
175 </execution>
176 </executions>
177 <configuration>
178 <dateFormat>yyyyMMdd-HHmmss</dateFormat><!-- human-readable part of the version number -->
179 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
180 <generateGitPropertiesFile>false</generateGitPropertiesFile><!-- somehow necessary. otherwise the variables are not available in the pom -->
181 </configuration>
182 </plugin>
Marc Kupietz33677732020-09-04 22:07:39 +0200183 </plugins>
184 </build>
185
186 <dependencies>
Marc Kupietz81925092020-09-07 15:16:51 +0200187 <!-- https://mvnrepository.com/artifact/org.apache.opennlp/opennlp-tools -->
188 <dependency>
189 <groupId>org.apache.opennlp</groupId>
190 <artifactId>opennlp-tools</artifactId>
191 <version>1.9.3</version>
192 </dependency>
Marc Kupietz33677732020-09-04 22:07:39 +0200193 <dependency>
194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-surefire-plugin</artifactId>
196 <version>2.22.2</version>
197 </dependency>
198 <dependency>
199 <groupId>junit</groupId>
200 <artifactId>junit</artifactId>
201 <version>4.11</version>
202 </dependency>
Marc Kupietz793f85d2020-09-08 14:40:24 +0200203 <dependency>
204 <groupId>com.github.stephenc.jcip</groupId>
205 <artifactId>jcip-annotations</artifactId>
206 <version>1.0-1</version>
207 <scope>test</scope>
208 </dependency>
Marc Kupietz33677732020-09-04 22:07:39 +0200209 </dependencies>
Marc Kupietz33677732020-09-04 22:07:39 +0200210</project>