blob: ffc088ee897b84aa5c8a0d9b0b5013a60f4da807 [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 Kupietza37cc9f2020-07-20 09:12:20 +020037 <plugin>
38 <groupId>org.apache.maven.plugins</groupId>
39 <artifactId>maven-jar-plugin</artifactId>
40 <version>3.2.0</version>
41 <configuration>
42 <archive>
43 <index>true</index>
44 <manifest>
45 <addClasspath>true</addClasspath>
46 <classpathPrefix>dependency/</classpathPrefix>
Marc Kupietzaaf46f12020-07-29 18:00:57 +020047 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020048 </manifest>
49 </archive>
50 </configuration>
51 </plugin>
52 <plugin>
53 <groupId>org.apache.maven.plugins</groupId>
54 <artifactId>maven-compiler-plugin</artifactId>
Marc Kupietz869bfb92022-11-06 20:38:40 +010055 <version>3.10.1</version>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020056 <configuration>
57 <!-- or whatever version you use -->
Marc Kupietz869bfb92022-11-06 20:38:40 +010058 <source>${maven.compiler.source}</source>
59 <target>${maven.compiler.target}</target>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020060 <showDeprecation>true</showDeprecation>
61 <annotationProcessorPaths>
62 <path>
63 <groupId>info.picocli</groupId>
64 <artifactId>picocli-codegen</artifactId>
65 <version>4.2.0</version>
66 </path>
67 </annotationProcessorPaths>
Marc Kupietza37cc9f2020-07-20 09:12:20 +020068 </configuration>
69 <executions>
70 <!-- Replacing default-compile as it is treated specially by maven -->
71 <execution>
72 <id>default-compile</id>
73 <phase>none</phase>
74 </execution>
75 <!-- Replacing default-testCompile as it is treated specially by
76 maven -->
77 <execution>
78 <id>default-testCompile</id>
79 <phase>none</phase>
80 </execution>
81 <execution>
82 <id>java-compile</id>
83 <phase>compile</phase>
84 <goals>
85 <goal>compile</goal>
86 </goals>
87 </execution>
88 <execution>
89 <id>java-test-compile</id>
90 <phase>test-compile</phase>
91 <goals>
92 <goal>testCompile</goal>
93 </goals>
94 </execution>
95 </executions>
96 </plugin>
Marc Kupietz869bfb92022-11-06 20:38:40 +010097
Marc Kupietz73397d82022-12-21 21:08:03 +010098 <plugin>
99 <groupId>org.apache.maven.plugins</groupId>
100 <artifactId>maven-assembly-plugin</artifactId>
101 <version>3.3.0</version>
102 <configuration>
103 <appendAssemblyId>true</appendAssemblyId>
104 <descriptors>
Marc Kupietz207a1e52022-12-21 21:08:04 +0100105 <descriptor>src/assembly/src-distribution.xml</descriptor>
Marc Kupietz73397d82022-12-21 21:08:03 +0100106 <descriptor>src/assembly/jar-distribution.xml</descriptor>
107 <descriptor>src/assembly/bin-distribution.xml</descriptor>
108 </descriptors>
109 <archive>
110 <manifest>
111 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
112 </manifest>
113 </archive>
114 </configuration>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200115 <executions>
116 <execution>
Marc Kupietz73397d82022-12-21 21:08:03 +0100117 <id>make-assembly</id>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200118 <phase>package</phase>
119 <goals>
120 <goal>single</goal>
121 </goals>
122 </execution>
123 </executions>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200124 </plugin>
125
126 <plugin>
127 <groupId>org.codehaus.mojo</groupId>
128 <artifactId>appassembler-maven-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100129 <version>2.1.0</version>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200130 <executions>
131 <execution>
132 <phase>package</phase>
133 <goals>
134 <goal>assemble</goal>
135 </goals>
136 </execution>
137 </executions>
138 <configuration>
Marc Kupietz73397d82022-12-21 21:08:03 +0100139 <!--we use the appassembler-maven-plugin only to generate shell script wrappers -->
Marc Kupietzaaf46f12020-07-29 18:00:57 +0200140 <binFolder>bin</binFolder>
Marc Kupietz097f35a2022-11-08 13:28:38 +0100141 <extraJvmArguments>-XX:MaxRAMPercentage=85 -Dgroovy.grape.enable=false</extraJvmArguments>
Marc Kupietz73397d82022-12-21 21:08:03 +0100142 <useWildcardClassPath>true</useWildcardClassPath>
143 <repositoryLayout>flat</repositoryLayout>
144 <generateRepository>false</generateRepository>
145 <repositoryName>.</repositoryName>
146 <assembleDirectory>${project.build.directory}</assembleDirectory>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200147 <binFileExtensions>
Marc Kupietz983cfc12021-10-07 18:54:07 +0200148 <unix/>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200149 </binFileExtensions>
150 <programs>
151 <program>
Marc Kupietzaaf46f12020-07-29 18:00:57 +0200152 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
153 <id>totalngrams</id>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200154 </program>
Marc Kupietz097f35a2022-11-08 13:28:38 +0100155 <program>
156 <mainClass>org.ids_mannheim.GeneratePseudonymKey</mainClass>
157 <id>generate_pseudonym_key</id>
158 </program>
159 <program>
160 <mainClass>org.ids_mannheim.Pseudonymize</mainClass>
161 <id>pseudonymize</id>
162 </program>
163 <program>
164 <mainClass>org.ids_mannheim.FilterKeys</mainClass>
165 <id>filter_keys</id>
166 </program>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200167 </programs>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200168 </configuration>
169 </plugin>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200170 <plugin>
171 <groupId>org.apache.maven.plugins</groupId>
172 <artifactId>maven-surefire-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100173 <version>3.0.0-M7</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100174 <configuration>
Marc Kupietz8250c4b2022-11-07 14:51:06 +0100175 <forkCount>1C</forkCount>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100176 <includes>
177 <include>**/*Test.java</include>
178 </includes>
Marc Kupietz8250c4b2022-11-07 14:51:06 +0100179 <argLine>-Xmx32768m</argLine>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100180 </configuration>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200181 </plugin>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200182 </plugins>
183 </build>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100184
185 <profiles>
186 <profile>
187 <id>activate-this-only-outside-intellij</id>
188 <activation>
189 <property>
190 <name>!idea.version</name>
191 </property>
192 </activation>
193
194 <build>
195 <plugins>
196 <plugin>
197 <artifactId>maven-compiler-plugin</artifactId>
198 <version>3.10.1</version>
199 <configuration>
200 <compilerId>groovy-eclipse-compiler</compilerId>
201 <compilerArguments>
202 <configScript>${project.basedir}/config.groovy</configScript>
203 </compilerArguments>
204 </configuration>
205 <dependencies>
206 <dependency>
207 <groupId>org.codehaus.groovy</groupId>
208 <artifactId>groovy-eclipse-compiler</artifactId>
209 <version>3.8.0</version>
210 </dependency>
211 <dependency>
212 <groupId>org.codehaus.groovy</groupId>
213 <artifactId>groovy-eclipse-batch</artifactId>
214 <version>4.0.6-02</version>
215 </dependency>
216 <dependency>
217 <groupId>org.apache.ivy</groupId>
218 <artifactId>ivy</artifactId>
219 <version>2.5.1</version>
220 </dependency>
221 </dependencies>
222 </plugin>
223 </plugins>
224 </build>
225 <dependencies>
226 <dependency>
227 <groupId>org.codehaus.groovy</groupId>
228 <artifactId>groovy-eclipse-compiler</artifactId>
229 <version>3.8.0</version>
230 </dependency>
231 <dependency>
232 <groupId>org.codehaus.groovy</groupId>
233 <artifactId>groovy-eclipse-batch</artifactId>
234 <version>4.0.6-02</version>
235 </dependency>
236 </dependencies>
237
238 <repositories>
239 <repository>
240 <id>groovy-libs-release-local</id>
241 <url>https://groovy.jfrog.io/artifactory/plugins-release-local</url>
242 </repository>
243 </repositories>
244
245 <pluginRepositories>
246 <pluginRepository>
247 <id>groovy-plugins-release-local</id>
248 <url>https://groovy.jfrog.io/artifactory/plugins-release-local</url>
249 </pluginRepository>
250 </pluginRepositories>
251 </profile>
252 </profiles>
253
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200254 <dependencies>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200255 <dependency>
256 <groupId>info.picocli</groupId>
257 <artifactId>picocli</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100258 <version>4.7.0</version>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200259 </dependency>
Marc Kupietzba7c7572020-07-23 13:49:56 +0200260 <!-- https://mvnrepository.com/artifact/org.anarres/parallelgzip -->
261 <dependency>
262 <groupId>org.anarres</groupId>
263 <artifactId>parallelgzip</artifactId>
Marc Kupietze23b6cb2020-07-24 16:21:41 +0200264 <version>1.0.5</version>
Marc Kupietzba7c7572020-07-23 13:49:56 +0200265 </dependency>
Marc Kupietz6638bb22020-07-27 12:27:59 +0200266 <dependency>
267 <groupId>org.junit.jupiter</groupId>
268 <artifactId>junit-jupiter</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100269 <version>5.9.1</version>
Marc Kupietz6638bb22020-07-27 12:27:59 +0200270 <scope>test</scope>
271 </dependency>
Marc Kupietz2ea60bd2020-07-28 09:24:43 +0200272 <dependency>
273 <groupId>org.bouncycastle</groupId>
274 <artifactId>bcprov-jdk15on</artifactId>
Marc Kupietzb6f4fab2022-10-13 12:38:05 +0200275 <version>1.70</version>
Marc Kupietz2ea60bd2020-07-28 09:24:43 +0200276 </dependency>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200277 <!-- https://mvnrepository.com/artifact/org.codehaus.mojo/appassembler-maven-plugin -->
278 <dependency>
279 <groupId>org.codehaus.mojo</groupId>
280 <artifactId>appassembler-maven-plugin</artifactId>
281 <version>2.1.0</version>
282 </dependency>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200283 <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin -->
284 <dependency>
285 <groupId>org.apache.maven.plugins</groupId>
286 <artifactId>maven-surefire-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100287 <version>3.0.0-M7</version>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200288 </dependency>
Marc Kupietzca29d552020-10-05 09:42:03 +0200289 <dependency>
290 <groupId>org.jetbrains</groupId>
291 <artifactId>annotations</artifactId>
Marc Kupietz15df2de2022-12-21 21:08:03 +0100292 <version>23.1.0</version>
Marc Kupietzca29d552020-10-05 09:42:03 +0200293 <scope>compile</scope>
294 </dependency>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100295 <dependency>
Marc Kupietz1b717be2021-09-15 16:36:11 +0200296 <groupId>org.tukaani</groupId>
297 <artifactId>xz</artifactId>
298 <version>1.9</version>
299 </dependency>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100300 <dependency>
301 <groupId>org.apache.groovy</groupId>
302 <artifactId>groovy</artifactId>
303 <version>4.0.6</version>
304 </dependency>
305
306 <!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-eclipse-batch -->
307
308 <dependency>
309 <groupId>org.codehaus.gpars</groupId>
310 <artifactId>gpars</artifactId>
311 <version>1.2.1</version>
312 </dependency>
313 <dependency>
314 <groupId>org.apache.ivy</groupId>
315 <artifactId>ivy</artifactId>
316 <version>2.5.1</version>
317 <scope>compile</scope>
318 <optional>true</optional>
319 </dependency>
320 <dependency>
321 <groupId>info.picocli</groupId>
322 <artifactId>picocli-groovy</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100323 <version>4.7.0</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100324 </dependency>
325 <dependency>
326 <groupId>org.apache.groovy</groupId>
327 <artifactId>groovy-cli-picocli</artifactId>
328 <version>4.0.6</version>
329 </dependency>
330
331 <dependency>
332 <groupId>commons-cli</groupId>
333 <artifactId>commons-cli</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100334 <version>1.5.0</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100335 </dependency>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200336 </dependencies>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100337
338
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200339</project>