blob: 61e763bb7108b1e6ab8ee22f6310574ae70d9d7e [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>
Marc Kupietzb66b8322020-07-29 17:17:38 +020099 <groupId>org.codehaus.mojo</groupId>
100 <artifactId>appassembler-maven-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100101 <version>2.1.0</version>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200102 <executions>
103 <execution>
104 <phase>package</phase>
105 <goals>
106 <goal>assemble</goal>
107 </goals>
108 </execution>
109 </executions>
110 <configuration>
Marc Kupietz73397d82022-12-21 21:08:03 +0100111 <!--we use the appassembler-maven-plugin only to generate shell script wrappers -->
Marc Kupietzaaf46f12020-07-29 18:00:57 +0200112 <binFolder>bin</binFolder>
Marc Kupietz097f35a2022-11-08 13:28:38 +0100113 <extraJvmArguments>-XX:MaxRAMPercentage=85 -Dgroovy.grape.enable=false</extraJvmArguments>
Marc Kupietz73397d82022-12-21 21:08:03 +0100114 <useWildcardClassPath>true</useWildcardClassPath>
115 <repositoryLayout>flat</repositoryLayout>
116 <generateRepository>false</generateRepository>
117 <repositoryName>.</repositoryName>
118 <assembleDirectory>${project.build.directory}</assembleDirectory>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200119 <binFileExtensions>
Marc Kupietz983cfc12021-10-07 18:54:07 +0200120 <unix/>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200121 </binFileExtensions>
122 <programs>
123 <program>
Marc Kupietzaaf46f12020-07-29 18:00:57 +0200124 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
125 <id>totalngrams</id>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200126 </program>
Marc Kupietz097f35a2022-11-08 13:28:38 +0100127 <program>
128 <mainClass>org.ids_mannheim.GeneratePseudonymKey</mainClass>
129 <id>generate_pseudonym_key</id>
130 </program>
131 <program>
132 <mainClass>org.ids_mannheim.Pseudonymize</mainClass>
133 <id>pseudonymize</id>
134 </program>
135 <program>
136 <mainClass>org.ids_mannheim.FilterKeys</mainClass>
137 <id>filter_keys</id>
138 </program>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200139 </programs>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200140 </configuration>
141 </plugin>
Marc Kupietzaf809522022-12-21 22:57:56 +0100142
143 <plugin>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-assembly-plugin</artifactId>
146 <version>3.3.0</version>
147 <configuration>
148 <appendAssemblyId>true</appendAssemblyId>
149 <descriptors>
150 <descriptor>src/assembly/src-distribution.xml</descriptor>
151 <descriptor>src/assembly/standalone-jar.xml</descriptor>
152 <descriptor>src/assembly/bin-distribution.xml</descriptor>
153 </descriptors>
154 <archive>
155 <manifest>
156 <mainClass>org.ids_mannheim.TotalNGrams</mainClass>
157 </manifest>
158 </archive>
159 </configuration>
160 <executions>
161 <execution>
162 <id>make-assembly</id>
163 <phase>package</phase>
164 <goals>
165 <goal>single</goal>
166 </goals>
167 </execution>
168 </executions>
169 </plugin>
170
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200171 <plugin>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-surefire-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100174 <version>3.0.0-M7</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100175 <configuration>
Marc Kupietz8250c4b2022-11-07 14:51:06 +0100176 <forkCount>1C</forkCount>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100177 <includes>
178 <include>**/*Test.java</include>
179 </includes>
Marc Kupietz8250c4b2022-11-07 14:51:06 +0100180 <argLine>-Xmx32768m</argLine>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100181 </configuration>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200182 </plugin>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200183 </plugins>
184 </build>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100185
186 <profiles>
187 <profile>
188 <id>activate-this-only-outside-intellij</id>
189 <activation>
190 <property>
191 <name>!idea.version</name>
192 </property>
193 </activation>
194
195 <build>
196 <plugins>
197 <plugin>
198 <artifactId>maven-compiler-plugin</artifactId>
199 <version>3.10.1</version>
200 <configuration>
201 <compilerId>groovy-eclipse-compiler</compilerId>
202 <compilerArguments>
203 <configScript>${project.basedir}/config.groovy</configScript>
204 </compilerArguments>
205 </configuration>
206 <dependencies>
207 <dependency>
208 <groupId>org.codehaus.groovy</groupId>
209 <artifactId>groovy-eclipse-compiler</artifactId>
210 <version>3.8.0</version>
211 </dependency>
212 <dependency>
213 <groupId>org.codehaus.groovy</groupId>
214 <artifactId>groovy-eclipse-batch</artifactId>
215 <version>4.0.6-02</version>
216 </dependency>
217 <dependency>
218 <groupId>org.apache.ivy</groupId>
219 <artifactId>ivy</artifactId>
220 <version>2.5.1</version>
221 </dependency>
222 </dependencies>
223 </plugin>
224 </plugins>
225 </build>
226 <dependencies>
227 <dependency>
228 <groupId>org.codehaus.groovy</groupId>
229 <artifactId>groovy-eclipse-compiler</artifactId>
230 <version>3.8.0</version>
231 </dependency>
232 <dependency>
233 <groupId>org.codehaus.groovy</groupId>
234 <artifactId>groovy-eclipse-batch</artifactId>
235 <version>4.0.6-02</version>
236 </dependency>
237 </dependencies>
238
239 <repositories>
240 <repository>
241 <id>groovy-libs-release-local</id>
242 <url>https://groovy.jfrog.io/artifactory/plugins-release-local</url>
243 </repository>
244 </repositories>
245
246 <pluginRepositories>
247 <pluginRepository>
248 <id>groovy-plugins-release-local</id>
249 <url>https://groovy.jfrog.io/artifactory/plugins-release-local</url>
250 </pluginRepository>
251 </pluginRepositories>
252 </profile>
253 </profiles>
254
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200255 <dependencies>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200256 <dependency>
257 <groupId>info.picocli</groupId>
258 <artifactId>picocli</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100259 <version>4.7.0</version>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200260 </dependency>
Marc Kupietzba7c7572020-07-23 13:49:56 +0200261 <!-- https://mvnrepository.com/artifact/org.anarres/parallelgzip -->
262 <dependency>
263 <groupId>org.anarres</groupId>
264 <artifactId>parallelgzip</artifactId>
Marc Kupietze23b6cb2020-07-24 16:21:41 +0200265 <version>1.0.5</version>
Marc Kupietzba7c7572020-07-23 13:49:56 +0200266 </dependency>
Marc Kupietz6638bb22020-07-27 12:27:59 +0200267 <dependency>
268 <groupId>org.junit.jupiter</groupId>
269 <artifactId>junit-jupiter</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100270 <version>5.9.1</version>
Marc Kupietz6638bb22020-07-27 12:27:59 +0200271 <scope>test</scope>
272 </dependency>
Marc Kupietz2ea60bd2020-07-28 09:24:43 +0200273 <dependency>
274 <groupId>org.bouncycastle</groupId>
275 <artifactId>bcprov-jdk15on</artifactId>
Marc Kupietzb6f4fab2022-10-13 12:38:05 +0200276 <version>1.70</version>
Marc Kupietz2ea60bd2020-07-28 09:24:43 +0200277 </dependency>
Marc Kupietzb66b8322020-07-29 17:17:38 +0200278 <!-- https://mvnrepository.com/artifact/org.codehaus.mojo/appassembler-maven-plugin -->
279 <dependency>
280 <groupId>org.codehaus.mojo</groupId>
281 <artifactId>appassembler-maven-plugin</artifactId>
282 <version>2.1.0</version>
283 </dependency>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200284 <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin -->
285 <dependency>
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-surefire-plugin</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100288 <version>3.0.0-M7</version>
Marc Kupietzcf6ec7d2020-07-29 18:00:08 +0200289 </dependency>
Marc Kupietzca29d552020-10-05 09:42:03 +0200290 <dependency>
291 <groupId>org.jetbrains</groupId>
292 <artifactId>annotations</artifactId>
Marc Kupietz15df2de2022-12-21 21:08:03 +0100293 <version>23.1.0</version>
Marc Kupietzca29d552020-10-05 09:42:03 +0200294 <scope>compile</scope>
295 </dependency>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100296 <dependency>
Marc Kupietz1b717be2021-09-15 16:36:11 +0200297 <groupId>org.tukaani</groupId>
298 <artifactId>xz</artifactId>
299 <version>1.9</version>
300 </dependency>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100301 <dependency>
302 <groupId>org.apache.groovy</groupId>
303 <artifactId>groovy</artifactId>
304 <version>4.0.6</version>
305 </dependency>
306
307 <!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-eclipse-batch -->
308
309 <dependency>
310 <groupId>org.codehaus.gpars</groupId>
311 <artifactId>gpars</artifactId>
312 <version>1.2.1</version>
313 </dependency>
314 <dependency>
315 <groupId>org.apache.ivy</groupId>
316 <artifactId>ivy</artifactId>
317 <version>2.5.1</version>
318 <scope>compile</scope>
319 <optional>true</optional>
320 </dependency>
321 <dependency>
322 <groupId>info.picocli</groupId>
323 <artifactId>picocli-groovy</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100324 <version>4.7.0</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100325 </dependency>
326 <dependency>
327 <groupId>org.apache.groovy</groupId>
328 <artifactId>groovy-cli-picocli</artifactId>
329 <version>4.0.6</version>
330 </dependency>
331
332 <dependency>
333 <groupId>commons-cli</groupId>
334 <artifactId>commons-cli</artifactId>
Marc Kupietzb6f601f2022-12-01 13:29:26 +0100335 <version>1.5.0</version>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100336 </dependency>
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200337 </dependencies>
Marc Kupietz869bfb92022-11-06 20:38:40 +0100338
339
Marc Kupietza37cc9f2020-07-20 09:12:20 +0200340</project>