blob: 2475c2b6b0ab6ed7552548cbb5c823404e745117 [file] [log] [blame]
Marc Kupietza37cc9f2020-07-20 09:12:20 +02001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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>
Marc Kupietz4a64b9c2021-10-07 18:53:19 +02008 <artifactId>totalngrams</artifactId>
Marc Kupietz5b1d3722022-12-21 16:40:10 +01009 <version>2.2.0</version>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020010
11 <properties>
12 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Marc Kupietz869bfb92022-11-06 20:38:40 +010013 <maven.compiler.source>17</maven.compiler.source>
14 <maven.compiler.target>17</maven.compiler.target>
15 <!-- Use the release flag only if you are using Java 9+ -->
16 <!-- <maven.compiler.release>8</maven.compiler.release> -->
17 <!-- verbose is useful for debugging purposes -->
18 <maven.compiler.verbose>true</maven.compiler.verbose> </properties>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020019
20 <build>
21 <resources>
22 <resource>
23 <directory>src/main/xml</directory>
24 <includes>
25 <include>**/*.xml</include>
26 </includes>
27 </resource>
Marc Kupietzbd62aa02020-07-22 08:48:40 +020028 <resource>
29 <directory>src/main/resources</directory>
30 <includes>
31 <include>**/*.properties</include>
32 </includes>
33 </resource>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020034 </resources>
Marc Kupietz869bfb92022-11-06 20:38:40 +010035
Marc Kupietza37cc9f2020-07-20 09:12:20 +020036 <plugins>
Marc Kupietz869bfb92022-11-06 20:38:40 +010037
Marc Kupietza37cc9f2020-07-20 09:12:20 +020038 <plugin>
39 <groupId>org.apache.maven.plugins</groupId>
40 <artifactId>maven-javadoc-plugin</artifactId>
Marc Kupietzab91cf02022-11-08 08:43:48 +010041 <version>3.4.1</version>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020042 <configuration>
43 <failOnError>false</failOnError>
Marc Kupietz869bfb92022-11-06 20:38:40 +010044 <source>${maven.compiler.target}</source>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020045 <javadocExecutable>${java.home}/bin/javadoc
46 </javadocExecutable>
47 </configuration>
48 <executions>
49 <execution>
50 <id>attach-javadocs</id>
51 <goals>
52 <goal>javadoc-no-fork</goal>
53 <goal>jar</goal>
54 </goals>
55 <configuration>
56 <failOnError>false</failOnError>
57 </configuration>
58 </execution>
59 </executions>
60 </plugin>
61 <plugin>
62 <groupId>org.apache.maven.plugins</groupId>
63 <artifactId>maven-jar-plugin</artifactId>
64 <version>3.2.0</version>
65 <configuration>
66 <archive>
67 <index>true</index>
68 <manifest>
69 <addClasspath>true</addClasspath>
70 <classpathPrefix>dependency/</classpathPrefix>
Marc Kupietzaaf46f12020-07-29 18:00:57 +020071 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020072 </manifest>
73 </archive>
74 </configuration>
75 </plugin>
76 <plugin>
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-compiler-plugin</artifactId>
Marc Kupietz869bfb92022-11-06 20:38:40 +010079 <version>3.10.1</version>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020080 <configuration>
81 <!-- or whatever version you use -->
Marc Kupietz869bfb92022-11-06 20:38:40 +010082 <source>${maven.compiler.source}</source>
83 <target>${maven.compiler.target}</target>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020084 <showDeprecation>true</showDeprecation>
85 <annotationProcessorPaths>
86 <path>
87 <groupId>info.picocli</groupId>
88 <artifactId>picocli-codegen</artifactId>
89 <version>4.2.0</version>
90 </path>
91 </annotationProcessorPaths>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020092 </configuration>
93 <executions>
94 <!-- Replacing default-compile as it is treated specially by maven -->
95 <execution>
96 <id>default-compile</id>
97 <phase>none</phase>
98 </execution>
99 <!-- Replacing default-testCompile as it is treated specially by
100 maven -->
101 <execution>
102 <id>default-testCompile</id>
103 <phase>none</phase>
104 </execution>
105 <execution>
106 <id>java-compile</id>
107 <phase>compile</phase>
108 <goals>
109 <goal>compile</goal>
110 </goals>
111 </execution>
112 <execution>
113 <id>java-test-compile</id>
114 <phase>test-compile</phase>
115 <goals>
116 <goal>testCompile</goal>
117 </goals>
118 </execution>
119 </executions>
120 </plugin>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100121
Marc Kupietz73397d82022-12-21 21:08:03 +0100122 <plugin>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-assembly-plugin</artifactId>
125 <version>3.3.0</version>
126 <configuration>
127 <appendAssemblyId>true</appendAssemblyId>
128 <descriptors>
129 <descriptor>src/assembly/jar-distribution.xml</descriptor>
130 <descriptor>src/assembly/bin-distribution.xml</descriptor>
131 </descriptors>
132 <archive>
133 <manifest>
134 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
135 </manifest>
136 </archive>
137 </configuration>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200138 <executions>
139 <execution>
Marc Kupietz73397d82022-12-21 21:08:03 +0100140 <id>make-assembly</id>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200141 <phase>package</phase>
142 <goals>
143 <goal>single</goal>
144 </goals>
145 </execution>
146 </executions>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200147 </plugin>
148
149 <plugin>
150 <groupId>org.codehaus.mojo</groupId>
151 <artifactId>appassembler-maven-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100152 <version>2.1.0</version>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200153 <executions>
154 <execution>
155 <phase>package</phase>
156 <goals>
157 <goal>assemble</goal>
158 </goals>
159 </execution>
160 </executions>
161 <configuration>
Marc Kupietz73397d82022-12-21 21:08:03 +0100162 <!--we use the appassembler-maven-plugin only to generate shell script wrappers -->
Marc Kupietzaaf46f12020-07-29 18:00:57 +0200163 <binFolder>bin</binFolder>
Marc Kupietz097f35a2022-11-08 13:28:38 +0100164 <extraJvmArguments>-XX:MaxRAMPercentage=85 -Dgroovy.grape.enable=false</extraJvmArguments>
Marc Kupietz73397d82022-12-21 21:08:03 +0100165 <useWildcardClassPath>true</useWildcardClassPath>
166 <repositoryLayout>flat</repositoryLayout>
167 <generateRepository>false</generateRepository>
168 <repositoryName>.</repositoryName>
169 <assembleDirectory>${project.build.directory}</assembleDirectory>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200170 <binFileExtensions>
Marc Kupietz983cfc12021-10-07 18:54:07 +0200171 <unix/>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200172 </binFileExtensions>
173 <programs>
174 <program>
Marc Kupietzaaf46f12020-07-29 18:00:57 +0200175 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
176 <id>totalngrams</id>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200177 </program>
Marc Kupietz097f35a2022-11-08 13:28:38 +0100178 <program>
179 <mainClass>org.ids_mannheim.GeneratePseudonymKey</mainClass>
180 <id>generate_pseudonym_key</id>
181 </program>
182 <program>
183 <mainClass>org.ids_mannheim.Pseudonymize</mainClass>
184 <id>pseudonymize</id>
185 </program>
186 <program>
187 <mainClass>org.ids_mannheim.FilterKeys</mainClass>
188 <id>filter_keys</id>
189 </program>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200190 </programs>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200191 </configuration>
192 </plugin>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200193 <plugin>
194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-surefire-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100196 <version>3.0.0-M7</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100197 <configuration>
Marc Kupietz8250c4b2022-11-07 14:51:06 +0100198 <forkCount>1C</forkCount>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100199 <includes>
200 <include>**/*Test.java</include>
201 </includes>
Marc Kupietz8250c4b2022-11-07 14:51:06 +0100202 <argLine>-Xmx32768m</argLine>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100203 </configuration>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200204 </plugin>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200205 </plugins>
206 </build>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100207
208 <profiles>
209 <profile>
210 <id>activate-this-only-outside-intellij</id>
211 <activation>
212 <property>
213 <name>!idea.version</name>
214 </property>
215 </activation>
216
217 <build>
218 <plugins>
219 <plugin>
220 <artifactId>maven-compiler-plugin</artifactId>
221 <version>3.10.1</version>
222 <configuration>
223 <compilerId>groovy-eclipse-compiler</compilerId>
224 <compilerArguments>
225 <configScript>${project.basedir}/config.groovy</configScript>
226 </compilerArguments>
227 </configuration>
228 <dependencies>
229 <dependency>
230 <groupId>org.codehaus.groovy</groupId>
231 <artifactId>groovy-eclipse-compiler</artifactId>
232 <version>3.8.0</version>
233 </dependency>
234 <dependency>
235 <groupId>org.codehaus.groovy</groupId>
236 <artifactId>groovy-eclipse-batch</artifactId>
237 <version>4.0.6-02</version>
238 </dependency>
239 <dependency>
240 <groupId>org.apache.ivy</groupId>
241 <artifactId>ivy</artifactId>
242 <version>2.5.1</version>
243 </dependency>
244 </dependencies>
245 </plugin>
246 </plugins>
247 </build>
248 <dependencies>
249 <dependency>
250 <groupId>org.codehaus.groovy</groupId>
251 <artifactId>groovy-eclipse-compiler</artifactId>
252 <version>3.8.0</version>
253 </dependency>
254 <dependency>
255 <groupId>org.codehaus.groovy</groupId>
256 <artifactId>groovy-eclipse-batch</artifactId>
257 <version>4.0.6-02</version>
258 </dependency>
259 </dependencies>
260
261 <repositories>
262 <repository>
263 <id>groovy-libs-release-local</id>
264 <url>https://groovy.jfrog.io/artifactory/plugins-release-local</url>
265 </repository>
266 </repositories>
267
268 <pluginRepositories>
269 <pluginRepository>
270 <id>groovy-plugins-release-local</id>
271 <url>https://groovy.jfrog.io/artifactory/plugins-release-local</url>
272 </pluginRepository>
273 </pluginRepositories>
274 </profile>
275 </profiles>
276
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200277 <dependencies>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200278 <dependency>
279 <groupId>info.picocli</groupId>
280 <artifactId>picocli</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100281 <version>4.7.0</version>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200282 </dependency>
Marc Kupietzba7c7572020-07-23 13:49:56 +0200283 <!-- https://mvnrepository.com/artifact/org.anarres/parallelgzip -->
284 <dependency>
285 <groupId>org.anarres</groupId>
286 <artifactId>parallelgzip</artifactId>
Marc Kupietze23b6cb2020-07-24 16:21:41 +0200287 <version>1.0.5</version>
Marc Kupietzba7c7572020-07-23 13:49:56 +0200288 </dependency>
Marc Kupietz6638bb22020-07-27 12:27:59 +0200289 <dependency>
290 <groupId>org.junit.jupiter</groupId>
291 <artifactId>junit-jupiter</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100292 <version>5.9.1</version>
Marc Kupietz6638bb22020-07-27 12:27:59 +0200293 <scope>test</scope>
294 </dependency>
Marc Kupietz2ea60bd2020-07-28 09:24:43 +0200295 <dependency>
296 <groupId>org.bouncycastle</groupId>
297 <artifactId>bcprov-jdk15on</artifactId>
Marc Kupietzb6f4fab2022-10-13 12:38:05 +0200298 <version>1.70</version>
Marc Kupietz2ea60bd2020-07-28 09:24:43 +0200299 </dependency>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200300 <!-- https://mvnrepository.com/artifact/org.codehaus.mojo/appassembler-maven-plugin -->
301 <dependency>
302 <groupId>org.codehaus.mojo</groupId>
303 <artifactId>appassembler-maven-plugin</artifactId>
304 <version>2.1.0</version>
305 </dependency>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200306 <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin -->
307 <dependency>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-surefire-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100310 <version>3.0.0-M7</version>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200311 </dependency>
Marc Kupietzca29d552020-10-05 09:42:03 +0200312 <dependency>
313 <groupId>org.jetbrains</groupId>
314 <artifactId>annotations</artifactId>
Marc Kupietzb6f4fab2022-10-13 12:38:05 +0200315 <version>23.0.0</version>
Marc Kupietzca29d552020-10-05 09:42:03 +0200316 <scope>compile</scope>
317 </dependency>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100318 <dependency>
Marc Kupietz1b717be2021-09-15 16:36:11 +0200319 <groupId>org.tukaani</groupId>
320 <artifactId>xz</artifactId>
321 <version>1.9</version>
322 </dependency>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100323 <dependency>
324 <groupId>org.apache.groovy</groupId>
325 <artifactId>groovy</artifactId>
326 <version>4.0.6</version>
327 </dependency>
328
329 <!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-eclipse-batch -->
330
331 <dependency>
332 <groupId>org.codehaus.gpars</groupId>
333 <artifactId>gpars</artifactId>
334 <version>1.2.1</version>
335 </dependency>
336 <dependency>
337 <groupId>org.apache.ivy</groupId>
338 <artifactId>ivy</artifactId>
339 <version>2.5.1</version>
340 <scope>compile</scope>
341 <optional>true</optional>
342 </dependency>
343 <dependency>
344 <groupId>info.picocli</groupId>
345 <artifactId>picocli-groovy</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100346 <version>4.7.0</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100347 </dependency>
348 <dependency>
349 <groupId>org.apache.groovy</groupId>
350 <artifactId>groovy-cli-picocli</artifactId>
351 <version>4.0.6</version>
352 </dependency>
353
354 <dependency>
355 <groupId>commons-cli</groupId>
356 <artifactId>commons-cli</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100357 <version>1.5.0</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100358 </dependency>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200359 </dependencies>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100360
361
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200362</project>