source: gs3-extensions/iiif-servlet/trunk/src/cantaloupe-pom.xml@ 32707

Last change on this file since 32707 was 32707, checked in by davidb, 5 years ago

Files needed for GS3-Cantaloupe bridge result from second round of testing

File size: 26.3 KB
Line 
1<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <groupId>edu.illinois.library.cantaloupe</groupId>
6 <artifactId>cantaloupe</artifactId>
7 <packaging>war</packaging>
8 <version>4.0.2</version>
9 <name>Cantaloupe</name>
10 <url>https://medusa-project.github.io/cantaloupe/</url>
11 <inceptionYear>2015</inceptionYear>
12
13 <properties>
14 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
16 <aws-sdk.version>1.11.291</aws-sdk.version>
17 <jackson.version>2.9.5</jackson.version>
18 <jetty.version>9.4.12.v20180830</jetty.version>
19 <jruby.version>9.1.17.0</jruby.version>
20 <restlet.version>2.3.11</restlet.version>
21 <surefire.version>2.21.0</surefire.version>
22 </properties>
23
24 <developers>
25 <developer>
26 <id>alexd</id>
27 <name>Alex Dolski</name>
28 <email>[email protected]</email>
29 <organization>University of Illinois at Urbana-Champaign Library</organization>
30 <organizationUrl>http://www.library.illinois.edu/</organizationUrl>
31 <roles>
32 <role>founder</role>
33 <role>lead</role>
34 <role>developer</role>
35 <role>debugger</role>
36 <role>reviewer</role>
37 <role>support</role>
38 <role>maintainer</role>
39 </roles>
40 <timezone>-6</timezone>
41 </developer>
42 </developers>
43
44 <scm>
45 <connection>scm:git:git://github.com/medusa-project/cantaloupe</connection>
46 <developerConnection>scm:git:[email protected]:medusa-project/cantaloupe</developerConnection>
47 <tag>HEAD</tag>
48 <url>https://github.com/medusa-project/cantaloupe</url>
49 </scm>
50 <issueManagement>
51 <system>GitHub Issues</system>
52 <url>https://github.com/medusa-project/cantaloupe/issues</url>
53 </issueManagement>
54
55 <dependencies>
56
57 <dependency>
58 <groupId>org.greenstone</groupId>
59 <artifactId>gsdl3</artifactId>
60 <version>3.0.9</version>
61 <scope>system</scope>
62 <!--
63 <systemPath>${project.basedir}/src/main/resources/gsdl3.jar</systemPath>
64 -->
65 <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/gsdl3.jar</systemPath>
66 </dependency>
67
68 <dependency>
69 <groupId>org.greenstone</groupId>
70 <artifactId>gutil</artifactId>
71 <version>3.0.9</version>
72 <scope>system</scope>
73 <!--
74 <systemPath>${project.basedir}/src/main/resources/gutil.jar</systemPath>
75 -->
76 <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/gutil.jar</systemPath>
77 </dependency>
78
79 <dependency>
80 <groupId>log4j</groupId>
81 <artifactId>log4j</artifactId>
82 <version>1.2.8</version>
83 </dependency>
84
85
86
87 <!-- Used by RedisCache -->
88 <dependency>
89 <groupId>biz.paluch.redis</groupId>
90 <artifactId>lettuce</artifactId>
91 <version>4.3.3.Final</version>
92 </dependency>
93 <!-- The application logger. -->
94 <dependency>
95 <groupId>ch.qos.logback</groupId>
96 <artifactId>logback-classic</artifactId>
97 <version>1.2.3</version>
98 </dependency>
99 <dependency>
100 <groupId>ch.qos.logback</groupId>
101 <artifactId>logback-core</artifactId>
102 <version>1.2.3</version>
103 </dependency>
104 <!-- Used by S3Source and S3Cache -->
105 <dependency>
106 <groupId>com.amazonaws</groupId>
107 <artifactId>aws-java-sdk-core</artifactId>
108 <version>${aws-sdk.version}</version>
109 </dependency>
110 <dependency>
111 <groupId>com.amazonaws</groupId>
112 <artifactId>aws-java-sdk-s3</artifactId>
113 <version>${aws-sdk.version}</version>
114 </dependency>
115 <!-- In-memory object cache: https://github.com/ben-manes/caffeine-->
116 <dependency>
117 <groupId>com.github.ben-manes.caffeine</groupId>
118 <artifactId>caffeine</artifactId>
119 <version>2.5.6</version>
120 </dependency>
121 <!-- Used in tests to test that System.exit() is called -->
122 <dependency>
123 <groupId>com.github.stefanbirkner</groupId>
124 <artifactId>system-rules</artifactId>
125 <version>1.15.1</version>
126 <scope>test</scope>
127 </dependency>
128 <!-- Used by HeapCache -->
129 <dependency>
130 <groupId>com.google.protobuf</groupId>
131 <artifactId>protobuf-java</artifactId>
132 <version>3.5.1</version>
133 </dependency>
134 <!-- Used by JdbcSourceTest and JdbcCacheTest -->
135 <dependency>
136 <groupId>com.h2database</groupId>
137 <artifactId>h2</artifactId>
138 <version>1.4.196</version>
139 <scope>test</scope>
140 </dependency>
141 <!-- Used by com.mortennobel.imagescaling -->
142 <dependency>
143 <groupId>com.jhlabs</groupId>
144 <artifactId>filters</artifactId>
145 <version>2.0.235</version>
146 </dependency>
147 <!-- Used by AzureStorageSource and AzureStorageCache-->
148 <dependency>
149 <groupId>com.microsoft.azure</groupId>
150 <artifactId>azure-storage</artifactId>
151 <version>5.2.0</version>
152 </dependency>
153 <!-- Provides a JDBC connection pool for JdbcSource and JdbcCache -->
154 <dependency>
155 <groupId>com.zaxxer</groupId>
156 <artifactId>HikariCP</artifactId>
157 <version>2.7.2</version>
158 </dependency>
159 <!-- Manages the application configuration. -->
160 <dependency>
161 <groupId>commons-configuration</groupId>
162 <artifactId>commons-configuration</artifactId>
163 <version>1.10</version>
164 </dependency>
165 <!-- IOUtils is used widely -->
166 <dependency>
167 <groupId>commons-io</groupId>
168 <artifactId>commons-io</artifactId>
169 <version>2.4</version>
170 </dependency>
171 <!-- Used by S3SourceTest and S3CacheTest -->
172 <dependency>
173 <groupId>io.findify</groupId>
174 <artifactId>s3mock_2.12</artifactId>
175 <version>0.2.4</version>
176 <scope>test</scope>
177 </dependency>
178 <!-- Dependency on part of Java EE that's available by default in Java 8
179 but not 9 -->
180 <dependency>
181 <groupId>javax.xml.bind</groupId>
182 <artifactId>jaxb-api</artifactId>
183 <version>2.3.0</version>
184 </dependency>
185 <!-- Enhanced ImageIO TIFF plugin supporting BigTIFF:
186 https://github.com/geosolutions-it/imageio-ext/ -->
187 <dependency>
188 <groupId>it.geosolutions.imageio-ext</groupId>
189 <artifactId>imageio-ext-tiff</artifactId>
190 <version>1.1.19</version>
191 </dependency>
192 <dependency>
193 <groupId>javax.servlet</groupId>
194 <artifactId>javax.servlet-api</artifactId>
195 <version>3.1.0</version>
196 <scope>provided</scope>
197 </dependency>
198 <dependency>
199 <groupId>org.apache.commons</groupId>
200 <artifactId>commons-lang3</artifactId>
201 <version>3.6</version>
202 </dependency>
203 <dependency>
204 <groupId>commons-codec</groupId>
205 <artifactId>commons-codec</artifactId>
206 <version>1.10</version>
207 </dependency>
208 <!-- This is used to fix a CVE-2015-6420 in commons-collections-3.2.1, a
209 transitive dependency -->
210 <dependency>
211 <groupId>commons-collections</groupId>
212 <artifactId>commons-collections</artifactId>
213 <version>3.2.2</version>
214 </dependency>
215 <!-- Provides PDFBox for PdfBoxProcessor. Note that there are also some
216 other dependencies in this POM used only by PDFBox. -->
217 <dependency>
218 <groupId>org.apache.pdfbox</groupId>
219 <artifactId>pdfbox</artifactId>
220 <version>2.0.12</version>
221 </dependency>
222 <!-- Assists PDFBox in decoding JBIG2-encoded images -->
223 <dependency>
224 <groupId>org.apache.pdfbox</groupId>
225 <artifactId>jbig2-imageio</artifactId>
226 <version>3.0.0</version>
227 </dependency>
228 <!-- Unit tests -->
229 <dependency>
230 <groupId>junit</groupId>
231 <artifactId>junit</artifactId>
232 <version>4.12</version>
233 <scope>test</scope>
234 </dependency>
235 <!-- Performance tests -->
236 <dependency>
237 <groupId>org.openjdk.jmh</groupId>
238 <artifactId>jmh-core</artifactId>
239 <version>1.19</version>
240 <scope>test</scope>
241 </dependency>
242 <dependency>
243 <groupId>org.openjdk.jmh</groupId>
244 <artifactId>jmh-generator-annprocess</artifactId>
245 <version>1.19</version>
246 <scope>test</scope>
247 </dependency>
248 <!-- Assists in parsing XMP metadata in RDF/XML -->
249 <dependency>
250 <groupId>org.apache.jena</groupId>
251 <artifactId>jena-core</artifactId>
252 <version>3.4.0</version>
253 </dependency>
254 <dependency>
255 <groupId>org.apache.jena</groupId>
256 <artifactId>jena-arq</artifactId>
257 <version>3.4.0</version>
258 </dependency>
259 <!-- Used for media type detection -->
260 <dependency>
261 <groupId>org.apache.tika</groupId>
262 <artifactId>tika-core</artifactId>
263 <version>1.19.1</version>
264 </dependency>
265 <!-- Assists PDFBox in decoding certain PDFs -->
266 <dependency>
267 <groupId>org.bouncycastle</groupId>
268 <artifactId>bcprov-jdk15on</artifactId>
269 <version>1.55</version>
270 </dependency>
271 <!-- Supports <if> expressions in logback.xml -->
272 <dependency>
273 <groupId>org.codehaus.janino</groupId>
274 <artifactId>janino</artifactId>
275 <version>2.7.8</version>
276 </dependency>
277 <!-- Provides HTTP/2 support in the Jetty client.
278 N.B.: ALPN support is in a different module. -->
279 <dependency>
280 <groupId>org.eclipse.jetty.http2</groupId>
281 <artifactId>http2-client</artifactId>
282 <version>${jetty.version}</version>
283 </dependency>
284 <dependency>
285 <groupId>org.eclipse.jetty.http2</groupId>
286 <artifactId>http2-http-client-transport</artifactId>
287 <version>${jetty.version}</version>
288 </dependency>
289 <!-- Provides HTTP/2 support in the Jetty server.
290 N.B.: ALPN support is in a different module. -->
291 <dependency>
292 <groupId>org.eclipse.jetty.http2</groupId>
293 <artifactId>http2-server</artifactId>
294 <version>${jetty.version}</version>
295 </dependency>
296 <!-- Enables support for ALPN in Jetty client.
297 N.B.: in Java 8, this requires an alpn-boot JAR on the boot classpath. -->
298 <dependency>
299 <groupId>org.eclipse.jetty</groupId>
300 <artifactId>jetty-alpn-client</artifactId>
301 <version>${jetty.version}</version>
302 </dependency>
303 <!-- Enables support for ALPN in Jetty server.
304 N.B.: in Java 8, this requires an alpn-boot JAR on the boot classpath. -->
305 <dependency>
306 <groupId>org.eclipse.jetty</groupId>
307 <artifactId>jetty-alpn-server</artifactId>
308 <version>${jetty.version}</version>
309 </dependency>
310 <!-- Enables Jetty client to support the ALPN built into Java 9 -->
311 <dependency>
312 <groupId>org.eclipse.jetty</groupId>
313 <artifactId>jetty-alpn-java-client</artifactId>
314 <version>${jetty.version}</version>
315 </dependency>
316 <!-- Enables Jetty server to support the ALPN built into Java 9 -->
317 <dependency>
318 <groupId>org.eclipse.jetty</groupId>
319 <artifactId>jetty-alpn-java-server</artifactId>
320 <version>${jetty.version}</version>
321 </dependency>
322 <!-- Used by HttpSource -->
323 <dependency>
324 <groupId>org.eclipse.jetty</groupId>
325 <artifactId>jetty-http</artifactId>
326 <version>${jetty.version}</version>
327 </dependency>
328 <dependency>
329 <groupId>org.eclipse.jetty</groupId>
330 <artifactId>jetty-io</artifactId>
331 <version>${jetty.version}</version>
332 </dependency>
333 <dependency>
334 <groupId>org.eclipse.jetty</groupId>
335 <artifactId>jetty-client</artifactId>
336 <version>${jetty.version}</version>
337 </dependency>
338 <!-- Provides the standalone servlet container -->
339 <dependency>
340 <groupId>org.eclipse.jetty</groupId>
341 <artifactId>jetty-util</artifactId>
342 <version>${jetty.version}</version>
343 </dependency>
344 <dependency>
345 <groupId>org.eclipse.jetty</groupId>
346 <artifactId>jetty-server</artifactId>
347 <version>${jetty.version}</version>
348 </dependency>
349 <dependency>
350 <groupId>org.eclipse.jetty</groupId>
351 <artifactId>jetty-servlet</artifactId>
352 <version>${jetty.version}</version>
353 </dependency>
354 <dependency>
355 <groupId>org.eclipse.jetty</groupId>
356 <artifactId>jetty-webapp</artifactId>
357 <version>${jetty.version}</version>
358 </dependency>
359 <!-- Enables colorized Logback console output in Windows -->
360 <dependency>
361 <groupId>org.fusesource.jansi</groupId>
362 <artifactId>jansi</artifactId>
363 <version>1.13</version>
364 </dependency>
365 <!-- JRuby is used to execute delegate script methods. -->
366 <dependency>
367 <groupId>org.jruby</groupId>
368 <artifactId>jruby-core</artifactId>
369 <version>${jruby.version}</version>
370 </dependency>
371 <!-- Needed by tests, but not necessary at compile time. -->
372 <dependency>
373 <groupId>org.jruby</groupId>
374 <artifactId>jruby-stdlib</artifactId>
375 <version>${jruby.version}</version>
376 <scope>runtime</scope>
377 </dependency>
378 <!-- Restlet is our REST framework. -->
379 <dependency>
380 <groupId>org.restlet.jee</groupId>
381 <artifactId>org.restlet</artifactId>
382 <version>${restlet.version}</version>
383 </dependency>
384 <!-- Jackson for data serialization -->
385 <dependency>
386 <groupId>com.fasterxml.jackson.core</groupId>
387 <artifactId>jackson-core</artifactId>
388 <version>${jackson.version}</version>
389 </dependency>
390 <dependency>
391 <groupId>com.fasterxml.jackson.core</groupId>
392 <artifactId>jackson-annotations</artifactId>
393 <version>${jackson.version}</version>
394 </dependency>
395 <dependency>
396 <groupId>com.fasterxml.jackson.core</groupId>
397 <artifactId>jackson-databind</artifactId>
398 <version>${jackson.version}</version>
399 </dependency>
400 <!-- Make Jackson aware of JDK8 date/time objects -->
401 <dependency>
402 <groupId>com.fasterxml.jackson.datatype</groupId>
403 <artifactId>jackson-datatype-jsr310</artifactId>
404 <version>${jackson.version}</version>
405 </dependency>
406 <!-- Makes Restlet log to SLF4J -->
407 <dependency>
408 <groupId>org.restlet.jee</groupId>
409 <artifactId>org.restlet.ext.slf4j</artifactId>
410 <version>${restlet.version}</version>
411 </dependency>
412 <!-- Enable usage of the application in a Servlet container -->
413 <dependency>
414 <groupId>org.restlet.jee</groupId>
415 <artifactId>org.restlet.ext.servlet</artifactId>
416 <version>${restlet.version}</version>
417 </dependency>
418 <!-- Provides Velocity for the landing and error page templates -->
419 <dependency>
420 <groupId>org.apache.velocity</groupId>
421 <artifactId>velocity-engine-core</artifactId>
422 <version>2.0</version>
423 </dependency>
424 <!-- Selenium is used to test the control panel, using a headless HtmlUnit
425 browser. -->
426 <dependency>
427 <groupId>org.seleniumhq.selenium</groupId>
428 <artifactId>htmlunit-driver</artifactId>
429 <version>2.21</version>
430 <scope>test</scope>
431 </dependency>
432 <dependency>
433 <groupId>org.seleniumhq.selenium</groupId>
434 <artifactId>selenium-api</artifactId>
435 <version>2.53.0</version>
436 <scope>test</scope>
437 </dependency>
438 <dependency>
439 <groupId>org.seleniumhq.selenium</groupId>
440 <artifactId>selenium-support</artifactId>
441 <version>2.53.0</version>
442 <scope>test</scope>
443 </dependency>
444 <!-- Logging interface used by the application -->
445 <dependency>
446 <groupId>org.slf4j</groupId>
447 <artifactId>slf4j-api</artifactId>
448 <version>1.7.25</version>
449 </dependency>
450 <!-- intercepts jcl log messages from Commons etc. -->
451 <dependency>
452 <groupId>org.slf4j</groupId>
453 <artifactId>jcl-over-slf4j</artifactId>
454 <version>1.7.25</version>
455 </dependency>
456 </dependencies>
457
458 <repositories>
459 <!-- Provides imageio-ext-tiff -->
460 <repository>
461 <id>imageio-ext-repository</id>
462 <name>imageio-ext Repository</name>
463 <url>http://maven.geo-solutions.it/</url>
464 </repository>
465 <!-- Provides Restlet -->
466 <repository>
467 <id>maven-restlet</id>
468 <name>Restlet repository</name>
469 <url>http://maven.restlet.com</url>
470 </repository>
471 </repositories>
472
473 <build>
474 <plugins>
475 <plugin>
476 <groupId>org.apache.maven.plugins</groupId>
477 <artifactId>maven-surefire-plugin</artifactId>
478 <version>${surefire.version}</version>
479 <configuration>
480 <runOrder>random</runOrder>
481 <reuseForks>false</reuseForks>
482 </configuration>
483 </plugin>
484
485 <!-- Find bugs with mvn findbugs:findbugs findbugs:gui -->
486 <plugin>
487 <groupId>org.codehaus.mojo</groupId>
488 <artifactId>findbugs-maven-plugin</artifactId>
489 <version>3.0.1</version>
490 </plugin>
491
492 <plugin>
493 <groupId>org.apache.maven.plugins</groupId>
494 <artifactId>maven-compiler-plugin</artifactId>
495 <version>3.3</version>
496 <configuration>
497 <source>1.8</source>
498 <target>1.8</target>
499 <useIncrementalCompilation>false</useIncrementalCompilation>
500 </configuration>
501 </plugin>
502
503 <!-- About the build: it's easy to build a JAR using the Maven Shade
504 plugin, and it's easy to build a WAR using the Maven WAR plugin. However,
505 this application is packaged as a special WAR that can also be run like a
506 JAR, and there's no all-in-one Maven plugin for that. So, from here, we
507 have to go through a sequence of steps to build the custom WAR. -->
508
509 <!-- The first step is to unpack dependencies (direct and transient)
510 needed in standalone mode into the root, for compatibility with
511 `java -jar` invocation. Note that this plugin is not smart about handling
512 dependencies with the same filename, which mainly is a problem with
513 same-named META-INF/services files from e.g. Jetty, so we will have to
514 work around that in a later step. -->
515 <plugin>
516 <groupId>org.apache.maven.plugins</groupId>
517 <artifactId>maven-dependency-plugin</artifactId>
518 <version>3.0.2</version>
519 <executions>
520 <execution>
521 <id>unpack-dependencies</id>
522 <phase>prepare-package</phase>
523 <goals>
524 <goal>unpack-dependencies</goal>
525 </goals>
526 <configuration>
527 <excludes>**/META-INF/*.DSA, **/META-INF/*.MF,
528 **/META-INF/*.RSA, **/META-INF/*.SF,
529 **/META-INF/*.txt</excludes>
530 <includeGroupIds>
531 commons-configuration,
532 commons-lang,
533 commons-logging,
534 javax.servlet,
535 org.eclipse.jetty,
536 org.greenstone, log4j
537 </includeGroupIds>
538 <outputDirectory>
539 ${project.build.directory}/${project.artifactId}-${project.version}
540 </outputDirectory>
541 </configuration>
542 </execution>
543 </executions>
544 </plugin>
545
546 <!-- The previous step copied only dependencies. Now we copy the
547 application classes needed for standalone mode into the root. -->
548 <plugin>
549 <artifactId>maven-antrun-plugin</artifactId>
550 <executions>
551 <execution>
552 <id>copy-standalone-classes-to-root</id>
553 <phase>prepare-package</phase>
554 <goals>
555 <goal>run</goal>
556 </goals>
557 <configuration>
558 <tasks>
559 <copy todir="${project.build.directory}/${project.artifactId}-${project.version}/">
560 <fileset dir="${project.build.directory}/classes/">
561 <include name="edu/illinois/library/cantaloupe/config/*" />
562 <include name="edu/illinois/library/cantaloupe/util/FilesystemWatcher.class" />
563 <include name="edu/illinois/library/cantaloupe/util/FilesystemWatcher$Callback.class" />
564 <include name="edu/illinois/library/cantaloupe/util/SystemUtils.class" />
565 <include name="edu/illinois/library/cantaloupe/Application.class" />
566 <include name="edu/illinois/library/cantaloupe/ApplicationServer.class" />
567 <include name="edu/illinois/library/cantaloupe/StandaloneEntry.class" />
568 </fileset>
569 </copy>
570 </tasks>
571 </configuration>
572 </execution>
573
574 <!-- And also add back a missing Jetty service that didn't get
575 copied in the unpack-dependencies execution. -->
576 <execution>
577 <id>finalize-services</id>
578 <phase>prepare-package</phase>
579 <goals>
580 <goal>run</goal>
581 </goals>
582 <configuration>
583 <tasks>
584 <echo file="${project.build.directory}/${project.artifactId}-${project.version}/META-INF/services/org.eclipse.jetty.http.HttpFieldPreEncoder" append="true">
585 ${line.separator}org.eclipse.jetty.http2.hpack.HpackFieldPreEncoder
586 </echo>
587 </tasks>
588 </configuration>
589 </execution>
590 </executions>
591 </plugin>
592
593 <!-- Create the war file from the stuff we just unpacked. -->
594 <plugin>
595 <groupId>org.apache.maven.plugins</groupId>
596 <artifactId>maven-war-plugin</artifactId>
597 <version>3.2.0</version>
598 <executions>
599 <execution>
600 <id>create-war</id>
601 <phase>package</phase>
602 <goals>
603 <goal>war</goal>
604 </goals>
605 <configuration>
606 <archive>
607 <manifest>
608 <mainClass>edu.illinois.library.cantaloupe.StandaloneEntry</mainClass>
609 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
610 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
611 </manifest>
612 </archive>
613 </configuration>
614 </execution>
615 </executions>
616 </plugin>
617
618 <!-- Assemble the created war into a release package. -->
619 <plugin>
620 <artifactId>maven-assembly-plugin</artifactId>
621 <version>3.1.0</version>
622 <executions>
623 <execution>
624 <phase>package</phase>
625 <goals>
626 <goal>single</goal>
627 </goals>
628 </execution>
629 </executions>
630 <configuration>
631 <appendAssemblyId>false</appendAssemblyId>
632 <descriptors>
633 <descriptor>${basedir}/build/assembly.xml</descriptor>
634 </descriptors>
635 </configuration>
636 <!-- This plugin depends on a version of plexus-archiver that
637 doesn't work with JDK 9. So, use a version that does.
638 TODO: revisit this -->
639 <dependencies>
640 <dependency>
641 <groupId>org.codehaus.plexus</groupId>
642 <artifactId>plexus-archiver</artifactId>
643 <version>3.5</version>
644 </dependency>
645 </dependencies>
646 </plugin>
647
648 <!-- Enables running with mvn exec:java -->
649 <plugin>
650 <groupId>org.codehaus.mojo</groupId>
651 <artifactId>exec-maven-plugin</artifactId>
652 <version>1.2.1</version>
653 <configuration>
654 <mainClass>edu.illinois.library.cantaloupe.StandaloneEntry</mainClass>
655 </configuration>
656 </plugin>
657
658 </plugins>
659 </build>
660
661 <profiles>
662 <profile>
663 <id>nodeps</id>
664 <activation>
665 <activeByDefault>false</activeByDefault>
666 </activation>
667 <build>
668 <plugins>
669 <plugin>
670 <groupId>org.apache.maven.plugins</groupId>
671 <artifactId>maven-surefire-plugin</artifactId>
672 <version>${surefire.version}</version>
673 <configuration>
674 <runOrder>random</runOrder>
675 <reuseForks>false</reuseForks>
676 <excludes>
677 <exclude>AzureStorage*Test</exclude>
678 <exclude>FfmpegProcessorTest</exclude>
679 <exclude>GraphicsMagickProcessorTest</exclude>
680 <exclude>ImageMagickProcessorTest</exclude>
681 <exclude>KakaduDemoProcessorTest</exclude>
682 <exclude>KakaduNativeProcessorTest</exclude>
683 <exclude>OpenJpegProcessorTest</exclude>
684 <exclude>RedisCacheTest</exclude>
685 </excludes>
686 </configuration>
687 </plugin>
688 </plugins>
689 </build>
690 </profile>
691 <profile>
692 <id>freedeps</id>
693 <activation>
694 <activeByDefault>false</activeByDefault>
695 </activation>
696 <build>
697 <plugins>
698 <plugin>
699 <groupId>org.apache.maven.plugins</groupId>
700 <artifactId>maven-surefire-plugin</artifactId>
701 <version>${surefire.version}</version>
702 <configuration>
703 <runOrder>random</runOrder>
704 <reuseForks>false</reuseForks>
705 <excludes>
706 <exclude>Azure*Test</exclude>
707 <!-- openjpeg is free but there is no package containing opj_decompress in trusty -->
708 <exclude>OpenJpeg*Test</exclude>
709 </excludes>
710 </configuration>
711 </plugin>
712 </plugins>
713 </build>
714 </profile>
715 <profile>
716 <id>benchmark</id>
717 <properties>
718 <skipTests>true</skipTests>
719 <benchmark>edu.illinois</benchmark>
720 </properties>
721 <build>
722 <plugins>
723 <plugin>
724 <groupId>org.apache.maven.plugins</groupId>
725 <artifactId>maven-compiler-plugin</artifactId>
726 <configuration>
727 <testIncludes>
728 <testInclude>**/*</testInclude>
729 </testIncludes>
730 </configuration>
731 </plugin>
732 <plugin>
733 <groupId>org.codehaus.mojo</groupId>
734 <artifactId>exec-maven-plugin</artifactId>
735 <executions>
736 <execution>
737 <id>benchmark</id>
738 <phase>test</phase>
739 <goals>
740 <goal>exec</goal>
741 </goals>
742 <configuration>
743 <classpathScope>test</classpathScope>
744 <executable>java</executable>
745 <arguments>
746 <argument>-classpath</argument>
747 <classpath/>
748 <argument>org.openjdk.jmh.Main</argument>
749 <argument>-rf</argument>
750 <argument>json</argument>
751 <argument>-rff</argument>
752 <argument>target/jmh-result.${benchmark}.json</argument>
753 <argument>${benchmark}</argument>
754 </arguments>
755 </configuration>
756 </execution>
757 </executions>
758 </plugin>
759 </plugins>
760 </build>
761 </profile>
762 </profiles>
763</project>
Note: See TracBrowser for help on using the repository browser.