blob: c02b962c444b168c66d643a75160ed75522c9be1 [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 Kupietzb028de42023-02-02 19:52:11 +01009 <version>2.2.3</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 -->
Marc Kupietz426dbff2023-01-23 17:13:50 +010018 <maven.compiler.verbose>true</maven.compiler.verbose>
19 </properties>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020020
21 <build>
22 <resources>
23 <resource>
24 <directory>src/main/xml</directory>
25 <includes>
26 <include>**/*.xml</include>
27 </includes>
28 </resource>
Marc Kupietzbd62aa02020-07-22 08:48:40 +020029 <resource>
30 <directory>src/main/resources</directory>
31 <includes>
32 <include>**/*.properties</include>
33 </includes>
34 </resource>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020035 </resources>
Marc Kupietz869bfb92022-11-06 20:38:40 +010036
Marc Kupietza37cc9f2020-07-20 09:12:20 +020037 <plugins>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020038 <plugin>
39 <groupId>org.apache.maven.plugins</groupId>
40 <artifactId>maven-jar-plugin</artifactId>
41 <version>3.2.0</version>
42 <configuration>
43 <archive>
44 <index>true</index>
45 <manifest>
46 <addClasspath>true</addClasspath>
47 <classpathPrefix>dependency/</classpathPrefix>
Marc Kupietzaaf46f12020-07-29 18:00:57 +020048 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020049 </manifest>
50 </archive>
51 </configuration>
52 </plugin>
53 <plugin>
54 <groupId>org.apache.maven.plugins</groupId>
55 <artifactId>maven-compiler-plugin</artifactId>
Marc Kupietz869bfb92022-11-06 20:38:40 +010056 <version>3.10.1</version>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020057 <configuration>
58 <!-- or whatever version you use -->
Marc Kupietz869bfb92022-11-06 20:38:40 +010059 <source>${maven.compiler.source}</source>
60 <target>${maven.compiler.target}</target>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020061 <showDeprecation>true</showDeprecation>
62 <annotationProcessorPaths>
63 <path>
64 <groupId>info.picocli</groupId>
65 <artifactId>picocli-codegen</artifactId>
66 <version>4.2.0</version>
67 </path>
68 </annotationProcessorPaths>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020069 </configuration>
70 <executions>
71 <!-- Replacing default-compile as it is treated specially by maven -->
72 <execution>
73 <id>default-compile</id>
74 <phase>none</phase>
75 </execution>
76 <!-- Replacing default-testCompile as it is treated specially by
77 maven -->
78 <execution>
79 <id>default-testCompile</id>
80 <phase>none</phase>
81 </execution>
82 <execution>
83 <id>java-compile</id>
84 <phase>compile</phase>
85 <goals>
86 <goal>compile</goal>
87 </goals>
88 </execution>
89 <execution>
90 <id>java-test-compile</id>
91 <phase>test-compile</phase>
92 <goals>
93 <goal>testCompile</goal>
94 </goals>
95 </execution>
96 </executions>
97 </plugin>
Marc Kupietz869bfb92022-11-06 20:38:40 +010098
Marc Kupietz73397d82022-12-21 21:08:03 +010099 <plugin>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200100 <groupId>org.codehaus.mojo</groupId>
101 <artifactId>appassembler-maven-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100102 <version>2.1.0</version>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200103 <executions>
104 <execution>
105 <phase>package</phase>
106 <goals>
107 <goal>assemble</goal>
108 </goals>
109 </execution>
110 </executions>
111 <configuration>
Marc Kupietz73397d82022-12-21 21:08:03 +0100112 <!--we use the appassembler-maven-plugin only to generate shell script wrappers -->
Marc Kupietzaaf46f12020-07-29 18:00:57 +0200113 <binFolder>bin</binFolder>
Marc Kupietz097f35a2022-11-08 13:28:38 +0100114 <extraJvmArguments>-XX:MaxRAMPercentage=85 -Dgroovy.grape.enable=false</extraJvmArguments>
Marc Kupietz73397d82022-12-21 21:08:03 +0100115 <useWildcardClassPath>true</useWildcardClassPath>
116 <repositoryLayout>flat</repositoryLayout>
117 <generateRepository>false</generateRepository>
118 <repositoryName>.</repositoryName>
119 <assembleDirectory>${project.build.directory}</assembleDirectory>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200120 <binFileExtensions>
Marc Kupietz983cfc12021-10-07 18:54:07 +0200121 <unix/>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200122 </binFileExtensions>
123 <programs>
124 <program>
Marc Kupietzaaf46f12020-07-29 18:00:57 +0200125 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
126 <id>totalngrams</id>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200127 </program>
Marc Kupietz097f35a2022-11-08 13:28:38 +0100128 <program>
129 <mainClass>org.ids_mannheim.GeneratePseudonymKey</mainClass>
130 <id>generate_pseudonym_key</id>
131 </program>
132 <program>
133 <mainClass>org.ids_mannheim.Pseudonymize</mainClass>
134 <id>pseudonymize</id>
135 </program>
136 <program>
137 <mainClass>org.ids_mannheim.FilterKeys</mainClass>
138 <id>filter_keys</id>
139 </program>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200140 </programs>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200141 </configuration>
142 </plugin>
Marc Kupietzaf809522022-12-21 22:57:56 +0100143
144 <plugin>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-assembly-plugin</artifactId>
147 <version>3.3.0</version>
148 <configuration>
149 <appendAssemblyId>true</appendAssemblyId>
150 <descriptors>
151 <descriptor>src/assembly/src-distribution.xml</descriptor>
152 <descriptor>src/assembly/standalone-jar.xml</descriptor>
153 <descriptor>src/assembly/bin-distribution.xml</descriptor>
154 </descriptors>
155 <archive>
156 <manifest>
157 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
158 </manifest>
159 </archive>
160 </configuration>
161 <executions>
162 <execution>
163 <id>make-assembly</id>
164 <phase>package</phase>
165 <goals>
166 <goal>single</goal>
167 </goals>
168 </execution>
169 </executions>
170 </plugin>
171
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200172 <plugin>
173 <groupId>org.apache.maven.plugins</groupId>
174 <artifactId>maven-surefire-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100175 <version>3.0.0-M7</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100176 <configuration>
Marc Kupietz8250c4b2022-11-07 14:51:06 +0100177 <forkCount>1C</forkCount>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100178 <includes>
179 <include>**/*Test.java</include>
180 </includes>
Marc Kupietz8250c4b2022-11-07 14:51:06 +0100181 <argLine>-Xmx32768m</argLine>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100182 </configuration>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200183 </plugin>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200184 </plugins>
185 </build>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100186
187 <profiles>
188 <profile>
189 <id>activate-this-only-outside-intellij</id>
190 <activation>
191 <property>
192 <name>!idea.version</name>
193 </property>
194 </activation>
195
196 <build>
197 <plugins>
198 <plugin>
199 <artifactId>maven-compiler-plugin</artifactId>
200 <version>3.10.1</version>
201 <configuration>
202 <compilerId>groovy-eclipse-compiler</compilerId>
203 <compilerArguments>
204 <configScript>${project.basedir}/config.groovy</configScript>
205 </compilerArguments>
206 </configuration>
207 <dependencies>
208 <dependency>
209 <groupId>org.codehaus.groovy</groupId>
210 <artifactId>groovy-eclipse-compiler</artifactId>
211 <version>3.8.0</version>
212 </dependency>
213 <dependency>
214 <groupId>org.codehaus.groovy</groupId>
215 <artifactId>groovy-eclipse-batch</artifactId>
216 <version>4.0.6-02</version>
217 </dependency>
218 <dependency>
219 <groupId>org.apache.ivy</groupId>
220 <artifactId>ivy</artifactId>
221 <version>2.5.1</version>
222 </dependency>
223 </dependencies>
224 </plugin>
225 </plugins>
226 </build>
227 <dependencies>
228 <dependency>
229 <groupId>org.codehaus.groovy</groupId>
230 <artifactId>groovy-eclipse-compiler</artifactId>
231 <version>3.8.0</version>
232 </dependency>
233 <dependency>
234 <groupId>org.codehaus.groovy</groupId>
235 <artifactId>groovy-eclipse-batch</artifactId>
236 <version>4.0.6-02</version>
237 </dependency>
238 </dependencies>
239
240 <repositories>
241 <repository>
242 <id>groovy-libs-release-local</id>
243 <url>https://groovy.jfrog.io/artifactory/plugins-release-local</url>
244 </repository>
245 </repositories>
246
247 <pluginRepositories>
248 <pluginRepository>
249 <id>groovy-plugins-release-local</id>
250 <url>https://groovy.jfrog.io/artifactory/plugins-release-local</url>
251 </pluginRepository>
252 </pluginRepositories>
253 </profile>
254 </profiles>
255
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200256 <dependencies>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200257 <dependency>
258 <groupId>info.picocli</groupId>
259 <artifactId>picocli</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100260 <version>4.7.0</version>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200261 </dependency>
Marc Kupietzba7c7572020-07-23 13:49:56 +0200262 <!-- https://mvnrepository.com/artifact/org.anarres/parallelgzip -->
263 <dependency>
264 <groupId>org.anarres</groupId>
265 <artifactId>parallelgzip</artifactId>
Marc Kupietze23b6cb2020-07-24 16:21:41 +0200266 <version>1.0.5</version>
Marc Kupietzba7c7572020-07-23 13:49:56 +0200267 </dependency>
Marc Kupietz6638bb22020-07-27 12:27:59 +0200268 <dependency>
269 <groupId>org.junit.jupiter</groupId>
270 <artifactId>junit-jupiter</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100271 <version>5.9.1</version>
Marc Kupietz6638bb22020-07-27 12:27:59 +0200272 <scope>test</scope>
273 </dependency>
Marc Kupietz2ea60bd2020-07-28 09:24:43 +0200274 <dependency>
275 <groupId>org.bouncycastle</groupId>
276 <artifactId>bcprov-jdk15on</artifactId>
Marc Kupietzb6f4fab2022-10-13 12:38:05 +0200277 <version>1.70</version>
Marc Kupietz2ea60bd2020-07-28 09:24:43 +0200278 </dependency>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200279 <!-- https://mvnrepository.com/artifact/org.codehaus.mojo/appassembler-maven-plugin -->
280 <dependency>
281 <groupId>org.codehaus.mojo</groupId>
282 <artifactId>appassembler-maven-plugin</artifactId>
283 <version>2.1.0</version>
284 </dependency>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200285 <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin -->
286 <dependency>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-surefire-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100289 <version>3.0.0-M7</version>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200290 </dependency>
Marc Kupietzca29d552020-10-05 09:42:03 +0200291 <dependency>
292 <groupId>org.jetbrains</groupId>
293 <artifactId>annotations</artifactId>
Marc Kupietz15df2de2022-12-21 21:08:03 +0100294 <version>23.1.0</version>
Marc Kupietzca29d552020-10-05 09:42:03 +0200295 <scope>compile</scope>
296 </dependency>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100297 <dependency>
Marc Kupietz1b717be2021-09-15 16:36:11 +0200298 <groupId>org.tukaani</groupId>
299 <artifactId>xz</artifactId>
300 <version>1.9</version>
301 </dependency>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100302 <dependency>
303 <groupId>org.apache.groovy</groupId>
304 <artifactId>groovy</artifactId>
305 <version>4.0.6</version>
306 </dependency>
307
308 <!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-eclipse-batch -->
309
310 <dependency>
311 <groupId>org.codehaus.gpars</groupId>
312 <artifactId>gpars</artifactId>
313 <version>1.2.1</version>
314 </dependency>
315 <dependency>
316 <groupId>org.apache.ivy</groupId>
317 <artifactId>ivy</artifactId>
318 <version>2.5.1</version>
319 <scope>compile</scope>
320 <optional>true</optional>
321 </dependency>
322 <dependency>
323 <groupId>info.picocli</groupId>
324 <artifactId>picocli-groovy</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100325 <version>4.7.0</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100326 </dependency>
327 <dependency>
328 <groupId>org.apache.groovy</groupId>
329 <artifactId>groovy-cli-picocli</artifactId>
330 <version>4.0.6</version>
331 </dependency>
332
333 <dependency>
334 <groupId>commons-cli</groupId>
335 <artifactId>commons-cli</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100336 <version>1.5.0</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100337 </dependency>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200338 </dependencies>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100339
340
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200341</project>