blob: 35460672ba261d8ef9331aff4a3272eb482c34db [file] [log] [blame]
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +01001<?xml version="1.0"?>
Matthias Andreas Benkard545aeb62020-12-06 15:16:22 +01002<project
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4 xmlns="http://maven.apache.org/POM/4.0.0"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +01006
7 <modelVersion>4.0.0</modelVersion>
8
9 <groupId>eu.mulk</groupId>
10 <artifactId>aendggner</artifactId>
11 <version>${revision}</version>
12
13 <properties>
14 <maven.compiler.parameters>true</maven.compiler.parameters>
15 <maven.compiler.source>15</maven.compiler.source>
16 <maven.compiler.target>15</maven.compiler.target>
17
18 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
20
21 <enforced.maven-version>3.6.2</enforced.maven-version>
22
23 <antrun-plugin.version>3.0.0</antrun-plugin.version>
24 <compiler-plugin.version>3.8.1</compiler-plugin.version>
25 <enforcer-plugin.version>3.0.0-M3</enforcer-plugin.version>
26 <exec-plugin.version>3.0.0</exec-plugin.version>
27 <processor-plugin.version>4.2</processor-plugin.version>
28 <resources-plugin.version>3.2.0</resources-plugin.version>
29 <shade-plugin.version>3.2.4</shade-plugin.version>
30 <spotless-plugin.version>2.4.1</spotless-plugin.version>
31
32 <basic-annotations.version>0.2.0</basic-annotations.version>
33 <findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
34 <google.java.format.version>1.8</google.java.format.version>
35 <kotlin-annotations.version>1.4.10</kotlin-annotations.version>
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010036 <lanterna.version>3.0.4</lanterna.version>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +010037 <picocli.version>4.3.2</picocli.version>
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010038 <pdfocr.version>1.0.2</pdfocr.version>
39 <term4j.version>0.4.0</term4j.version>
Matthias Andreas Benkard545aeb62020-12-06 15:16:22 +010040 <tess4j.version>4.5.1</tess4j.version>
41 <tika.version>1.25</tika.version>
42 <jbig2-imageio.version>3.0.3</jbig2-imageio.version>
43 <jai-imageio-core.version>1.4.0</jai-imageio-core.version>
44 <jai-imageio-jpeg2000.version>1.3.0</jai-imageio-jpeg2000.version>
45 <sqlite-jdbc.version>3.30.1</sqlite-jdbc.version>
46 <jboss-logging.version>3.4.1.Final</jboss-logging.version>
47 <slf4j.version>1.7.30</slf4j.version>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +010048 </properties>
49
50 <dependencies>
51
52 <!-- Annotations -->
53 <dependency>
54 <groupId>pl.tlinkowski.annotation</groupId>
55 <artifactId>pl.tlinkowski.annotation.basic</artifactId>
56 <version>${basic-annotations.version}</version>
57 <scope>provided</scope>
58 </dependency>
59 <dependency>
60 <groupId>com.google.code.findbugs</groupId>
61 <artifactId>jsr305</artifactId>
62 <version>${findbugs-jsr305.version}</version>
63 <scope>provided</scope>
64 </dependency>
65 <dependency>
66 <groupId>org.jetbrains.kotlin</groupId>
67 <artifactId>kotlin-annotations-jvm</artifactId>
68 <version>${kotlin-annotations.version}</version>
69 <scope>provided</scope>
70 </dependency>
71
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010072 <!-- Command line parsing -->
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +010073 <dependency>
74 <groupId>info.picocli</groupId>
75 <artifactId>picocli</artifactId>
76 <version>${picocli.version}</version>
77 </dependency>
78
Matthias Andreas Benkard545aeb62020-12-06 15:16:22 +010079 <!-- Logging -->
80 <dependency>
81 <groupId>org.jboss.logging</groupId>
82 <artifactId>jboss-logging</artifactId>
83 <version>${jboss-logging.version}</version>
84 </dependency>
85
Matthias Andreas Benkard1d92ac82020-11-23 06:31:43 +010086 <!-- Document reading -->
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010087 <dependency>
Matthias Andreas Benkard1d92ac82020-11-23 06:31:43 +010088 <groupId>org.apache.tika</groupId>
89 <artifactId>tika-core</artifactId>
90 <version>${tika.version}</version>
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010091 </dependency>
92 <dependency>
Matthias Andreas Benkard1d92ac82020-11-23 06:31:43 +010093 <groupId>org.apache.tika</groupId>
94 <artifactId>tika-bundle</artifactId>
95 <version>${tika.version}</version>
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010096 </dependency>
97 <dependency>
Matthias Andreas Benkard545aeb62020-12-06 15:16:22 +010098 <groupId>org.apache.tika</groupId>
99 <artifactId>tika-parsers</artifactId>
100 <version>${tika.version}</version>
101 <exclusions>
102 <exclusion>
103 <groupId>org.slf4j</groupId>
104 <artifactId>jcl-over-slf4j</artifactId>
105 </exclusion>
106 <exclusion>
107 <groupId>org.slf4j</groupId>
108 <artifactId>jul-to-slf4j</artifactId>
109 </exclusion>
110 </exclusions>
111 </dependency>
112 <dependency>
113 <groupId>org.apache.pdfbox</groupId>
114 <artifactId>jbig2-imageio</artifactId>
115 <version>${jbig2-imageio.version}</version>
116 </dependency>
117 <dependency>
118 <groupId>com.github.jai-imageio</groupId>
119 <artifactId>jai-imageio-core</artifactId>
120 <version>${jai-imageio-core.version}</version>
121 </dependency>
122 <dependency>
123 <groupId>com.github.jai-imageio</groupId>
124 <artifactId>jai-imageio-jpeg2000</artifactId>
125 <version>${jai-imageio-jpeg2000.version}</version>
126 </dependency>
127 <dependency>
128 <groupId>org.xerial</groupId>
129 <artifactId>sqlite-jdbc</artifactId>
130 <version>${sqlite-jdbc.version}</version>
131 </dependency>
132 <dependency>
133 <groupId>org.slf4j</groupId>
134 <artifactId>slf4j-jdk14</artifactId>
135 <version>${slf4j.version}</version>
136 </dependency>
137 <dependency>
138 <groupId>org.slf4j</groupId>
139 <artifactId>log4j-over-slf4j</artifactId>
140 <version>${slf4j.version}</version>
141 </dependency>
142 <dependency>
Matthias Andreas Benkard1d92ac82020-11-23 06:31:43 +0100143 <groupId>net.sourceforge.tess4j</groupId>
144 <artifactId>tess4j</artifactId>
Matthias Andreas Benkard545aeb62020-12-06 15:16:22 +0100145 <version>${tess4j.version}</version>
Matthias Andreas Benkard1d92ac82020-11-23 06:31:43 +0100146 <exclusions>
147 <exclusion>
148 <groupId>org.slf4j</groupId>
149 <artifactId>jcl-over-slf4j</artifactId>
150 </exclusion>
151 <exclusion>
152 <groupId>org.slf4j</groupId>
153 <artifactId>log4j-over-slf4j</artifactId>
154 </exclusion>
Matthias Andreas Benkard545aeb62020-12-06 15:16:22 +0100155 <exclusion>
156 <groupId>org.slf4j</groupId>
157 <artifactId>jul-to-slf4j</artifactId>
158 </exclusion>
159 <exclusion>
160 <groupId>ch.qos.logback</groupId>
161 <artifactId>logback-classic</artifactId>
162 </exclusion>
Matthias Andreas Benkard1d92ac82020-11-23 06:31:43 +0100163 </exclusions>
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +0100164 </dependency>
165
166 <!-- Terminal output -->
167 <dependency>
168 <groupId>io.github.dgroup</groupId>
169 <artifactId>term4j</artifactId>
170 <version>${term4j.version}</version>
171 </dependency>
172 <dependency>
173 <groupId>com.googlecode.lanterna</groupId>
174 <artifactId>lanterna</artifactId>
175 <version>${lanterna.version}</version>
176 </dependency>
177
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100178 </dependencies>
179
180 <build>
181
Matthias Andreas Benkard545aeb62020-12-06 15:16:22 +0100182 <resources>
183 <resource>
184 <directory>src/main/resources</directory>
185 </resource>
186 </resources>
187
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100188 <pluginManagement>
189 <plugins>
190
191 <plugin>
192 <groupId>org.codehaus.mojo</groupId>
193 <artifactId>versions-maven-plugin</artifactId>
194 <configuration>
195 <generateBackupPoms>false</generateBackupPoms>
196 </configuration>
197 </plugin>
198
199 </plugins>
200 </pluginManagement>
201
202 <plugins>
203
204 <!-- Compiler -->
205 <plugin>
206 <artifactId>maven-compiler-plugin</artifactId>
207 <version>${compiler-plugin.version}</version>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100208 <configuration>
209 <annotationProcessorPaths>
210 <path>
211 <groupId>info.picocli</groupId>
212 <artifactId>picocli-codegen</artifactId>
213 <version>${picocli.version}</version>
214 </path>
215 </annotationProcessorPaths>
216 <compilerArgs>
217 <arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
218 </compilerArgs>
219 </configuration>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100220 </plugin>
221
222 <!-- Resources -->
223 <plugin>
224 <artifactId>maven-resources-plugin</artifactId>
225 <version>${resources-plugin.version}</version>
226 </plugin>
227
228 <!-- Google Java Code Formatter, for enforcing style conventions -->
229 <plugin>
230 <groupId>com.diffplug.spotless</groupId>
231 <artifactId>spotless-maven-plugin</artifactId>
232 <version>${spotless-plugin.version}</version>
233 <configuration>
234 <java>
235 <removeUnusedImports/>
236 <importOrder>
237 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
238 </importOrder>
239 <googleJavaFormat>
240 <version>${google.java.format.version}</version>
241 <style>GOOGLE</style>
242 </googleJavaFormat>
243 </java>
244 </configuration>
245 </plugin>
246
247 <plugin>
248 <artifactId>maven-antrun-plugin</artifactId>
249 <version>${antrun-plugin.version}</version>
250 </plugin>
251
252 <plugin>
253 <groupId>org.apache.maven.plugins</groupId>
254 <artifactId>maven-enforcer-plugin</artifactId>
255 <version>${enforcer-plugin.version}</version>
256 <executions>
257 <execution>
258 <id>enforce-maven</id>
259 <goals>
260 <goal>enforce</goal>
261 </goals>
262 <configuration>
263 <rules>
264 <requireMavenVersion>
265 <version>${enforced.maven-version}</version>
266 </requireMavenVersion>
267 </rules>
268 </configuration>
269 </execution>
270 </executions>
271 </plugin>
272
273 <plugin>
274 <groupId>org.codehaus.mojo</groupId>
275 <artifactId>exec-maven-plugin</artifactId>
276 <version>${exec-plugin.version}</version>
277 <configuration>
278 <mainClass>eu.mulk.aendggner.AendGgner</mainClass>
279 </configuration>
280 </plugin>
281
282 <plugin>
283 <groupId>org.apache.maven.plugins</groupId>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100284 <artifactId>maven-dependency-plugin</artifactId>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100285 <executions>
286 <execution>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100287 <id>copy-dependencies</id>
288 <phase>prepare-package</phase>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100289 <goals>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100290 <goal>copy-dependencies</goal>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100291 </goals>
292 <configuration>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100293 <outputDirectory>
294 ${project.build.directory}/libs
295 </outputDirectory>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100296 </configuration>
297 </execution>
298 </executions>
299 </plugin>
300
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100301 <plugin>
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-jar-plugin</artifactId>
304 <version>3.2.0</version>
305 <configuration>
306 <archive>
307 <manifest>
308 <addClasspath>true</addClasspath>
309 <classpathPrefix>libs/</classpathPrefix>
310 <mainClass>
311 eu.mulk.aendggner.AendGgner
312 </mainClass>
313 </manifest>
314 </archive>
315 </configuration>
316 </plugin>
317
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100318 </plugins>
319
320 </build>
321
322</project>