blob: a243d651f4b57d52170cef6490b27ef6a2a9ddb5 [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>
105 <descriptor>src/assembly/jar-distribution.xml</descriptor>
106 <descriptor>src/assembly/bin-distribution.xml</descriptor>
107 </descriptors>
108 <archive>
109 <manifest>
110 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
111 </manifest>
112 </archive>
113 </configuration>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200114 <executions>
115 <execution>
Marc Kupietz73397d82022-12-21 21:08:03 +0100116 <id>make-assembly</id>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200117 <phase>package</phase>
118 <goals>
119 <goal>single</goal>
120 </goals>
121 </execution>
122 </executions>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200123 </plugin>
124
125 <plugin>
126 <groupId>org.codehaus.mojo</groupId>
127 <artifactId>appassembler-maven-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100128 <version>2.1.0</version>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200129 <executions>
130 <execution>
131 <phase>package</phase>
132 <goals>
133 <goal>assemble</goal>
134 </goals>
135 </execution>
136 </executions>
137 <configuration>
Marc Kupietz73397d82022-12-21 21:08:03 +0100138 <!--we use the appassembler-maven-plugin only to generate shell script wrappers -->
Marc Kupietzaaf46f12020-07-29 18:00:57 +0200139 <binFolder>bin</binFolder>
Marc Kupietz097f35a2022-11-08 13:28:38 +0100140 <extraJvmArguments>-XX:MaxRAMPercentage=85 -Dgroovy.grape.enable=false</extraJvmArguments>
Marc Kupietz73397d82022-12-21 21:08:03 +0100141 <useWildcardClassPath>true</useWildcardClassPath>
142 <repositoryLayout>flat</repositoryLayout>
143 <generateRepository>false</generateRepository>
144 <repositoryName>.</repositoryName>
145 <assembleDirectory>${project.build.directory}</assembleDirectory>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200146 <binFileExtensions>
Marc Kupietz983cfc12021-10-07 18:54:07 +0200147 <unix/>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200148 </binFileExtensions>
149 <programs>
150 <program>
Marc Kupietzaaf46f12020-07-29 18:00:57 +0200151 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
152 <id>totalngrams</id>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200153 </program>
Marc Kupietz097f35a2022-11-08 13:28:38 +0100154 <program>
155 <mainClass>org.ids_mannheim.GeneratePseudonymKey</mainClass>
156 <id>generate_pseudonym_key</id>
157 </program>
158 <program>
159 <mainClass>org.ids_mannheim.Pseudonymize</mainClass>
160 <id>pseudonymize</id>
161 </program>
162 <program>
163 <mainClass>org.ids_mannheim.FilterKeys</mainClass>
164 <id>filter_keys</id>
165 </program>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200166 </programs>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200167 </configuration>
168 </plugin>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200169 <plugin>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-surefire-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100172 <version>3.0.0-M7</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100173 <configuration>
Marc Kupietz8250c4b2022-11-07 14:51:06 +0100174 <forkCount>1C</forkCount>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100175 <includes>
176 <include>**/*Test.java</include>
177 </includes>
Marc Kupietz8250c4b2022-11-07 14:51:06 +0100178 <argLine>-Xmx32768m</argLine>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100179 </configuration>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200180 </plugin>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200181 </plugins>
182 </build>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100183
184 <profiles>
185 <profile>
186 <id>activate-this-only-outside-intellij</id>
187 <activation>
188 <property>
189 <name>!idea.version</name>
190 </property>
191 </activation>
192
193 <build>
194 <plugins>
195 <plugin>
196 <artifactId>maven-compiler-plugin</artifactId>
197 <version>3.10.1</version>
198 <configuration>
199 <compilerId>groovy-eclipse-compiler</compilerId>
200 <compilerArguments>
201 <configScript>${project.basedir}/config.groovy</configScript>
202 </compilerArguments>
203 </configuration>
204 <dependencies>
205 <dependency>
206 <groupId>org.codehaus.groovy</groupId>
207 <artifactId>groovy-eclipse-compiler</artifactId>
208 <version>3.8.0</version>
209 </dependency>
210 <dependency>
211 <groupId>org.codehaus.groovy</groupId>
212 <artifactId>groovy-eclipse-batch</artifactId>
213 <version>4.0.6-02</version>
214 </dependency>
215 <dependency>
216 <groupId>org.apache.ivy</groupId>
217 <artifactId>ivy</artifactId>
218 <version>2.5.1</version>
219 </dependency>
220 </dependencies>
221 </plugin>
222 </plugins>
223 </build>
224 <dependencies>
225 <dependency>
226 <groupId>org.codehaus.groovy</groupId>
227 <artifactId>groovy-eclipse-compiler</artifactId>
228 <version>3.8.0</version>
229 </dependency>
230 <dependency>
231 <groupId>org.codehaus.groovy</groupId>
232 <artifactId>groovy-eclipse-batch</artifactId>
233 <version>4.0.6-02</version>
234 </dependency>
235 </dependencies>
236
237 <repositories>
238 <repository>
239 <id>groovy-libs-release-local</id>
240 <url>https://groovy.jfrog.io/artifactory/plugins-release-local</url>
241 </repository>
242 </repositories>
243
244 <pluginRepositories>
245 <pluginRepository>
246 <id>groovy-plugins-release-local</id>
247 <url>https://groovy.jfrog.io/artifactory/plugins-release-local</url>
248 </pluginRepository>
249 </pluginRepositories>
250 </profile>
251 </profiles>
252
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200253 <dependencies>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200254 <dependency>
255 <groupId>info.picocli</groupId>
256 <artifactId>picocli</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100257 <version>4.7.0</version>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200258 </dependency>
Marc Kupietzba7c7572020-07-23 13:49:56 +0200259 <!-- https://mvnrepository.com/artifact/org.anarres/parallelgzip -->
260 <dependency>
261 <groupId>org.anarres</groupId>
262 <artifactId>parallelgzip</artifactId>
Marc Kupietze23b6cb2020-07-24 16:21:41 +0200263 <version>1.0.5</version>
Marc Kupietzba7c7572020-07-23 13:49:56 +0200264 </dependency>
Marc Kupietz6638bb22020-07-27 12:27:59 +0200265 <dependency>
266 <groupId>org.junit.jupiter</groupId>
267 <artifactId>junit-jupiter</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100268 <version>5.9.1</version>
Marc Kupietz6638bb22020-07-27 12:27:59 +0200269 <scope>test</scope>
270 </dependency>
Marc Kupietz2ea60bd2020-07-28 09:24:43 +0200271 <dependency>
272 <groupId>org.bouncycastle</groupId>
273 <artifactId>bcprov-jdk15on</artifactId>
Marc Kupietzb6f4fab2022-10-13 12:38:05 +0200274 <version>1.70</version>
Marc Kupietz2ea60bd2020-07-28 09:24:43 +0200275 </dependency>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200276 <!-- https://mvnrepository.com/artifact/org.codehaus.mojo/appassembler-maven-plugin -->
277 <dependency>
278 <groupId>org.codehaus.mojo</groupId>
279 <artifactId>appassembler-maven-plugin</artifactId>
280 <version>2.1.0</version>
281 </dependency>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200282 <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin -->
283 <dependency>
284 <groupId>org.apache.maven.plugins</groupId>
285 <artifactId>maven-surefire-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100286 <version>3.0.0-M7</version>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200287 </dependency>
Marc Kupietzca29d552020-10-05 09:42:03 +0200288 <dependency>
289 <groupId>org.jetbrains</groupId>
290 <artifactId>annotations</artifactId>
Marc Kupietz15df2de2022-12-21 21:08:03 +0100291 <version>23.1.0</version>
Marc Kupietzca29d552020-10-05 09:42:03 +0200292 <scope>compile</scope>
293 </dependency>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100294 <dependency>
Marc Kupietz1b717be2021-09-15 16:36:11 +0200295 <groupId>org.tukaani</groupId>
296 <artifactId>xz</artifactId>
297 <version>1.9</version>
298 </dependency>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100299 <dependency>
300 <groupId>org.apache.groovy</groupId>
301 <artifactId>groovy</artifactId>
302 <version>4.0.6</version>
303 </dependency>
304
305 <!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-eclipse-batch -->
306
307 <dependency>
308 <groupId>org.codehaus.gpars</groupId>
309 <artifactId>gpars</artifactId>
310 <version>1.2.1</version>
311 </dependency>
312 <dependency>
313 <groupId>org.apache.ivy</groupId>
314 <artifactId>ivy</artifactId>
315 <version>2.5.1</version>
316 <scope>compile</scope>
317 <optional>true</optional>
318 </dependency>
319 <dependency>
320 <groupId>info.picocli</groupId>
321 <artifactId>picocli-groovy</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100322 <version>4.7.0</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100323 </dependency>
324 <dependency>
325 <groupId>org.apache.groovy</groupId>
326 <artifactId>groovy-cli-picocli</artifactId>
327 <version>4.0.6</version>
328 </dependency>
329
330 <dependency>
331 <groupId>commons-cli</groupId>
332 <artifactId>commons-cli</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100333 <version>1.5.0</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100334 </dependency>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200335 </dependencies>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100336
337
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200338</project>