| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.tika</groupId> |
| <artifactId>tika-parent</artifactId> |
| <version>1.13</version> |
| <relativePath>../tika-parent/pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>tika-app</artifactId> |
| <name>Apache Tika application</name> |
| <url>http://tika.apache.org/</url> |
| |
| <properties> |
| <ikvm>${env.IKVM_HOME}</ikvm> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>tika-parsers</artifactId> |
| <version>${project.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>tika-langdetect</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>tika-serialization</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>tika-xmp</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>tika-batch</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jul-to-slf4j</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jcl-over-slf4j</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <version>1.2.17</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| </dependency> |
| <dependency> |
| <artifactId>commons-io</artifactId> |
| <groupId>commons-io</groupId> |
| <version>${commons.io.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>false</filtering> |
| </resource> |
| <resource> |
| <directory>src/main/resources-filtered</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createDependencyReducedPom> |
| false |
| </createDependencyReducedPom> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*</exclude> |
| <exclude>LICENSE.txt</exclude> |
| <exclude>NOTICE.txt</exclude> |
| <exclude>CHANGES</exclude> |
| <exclude>README</exclude> |
| <exclude>builddef.lst</exclude> |
| <!-- clutter not needed in jar --> |
| <exclude>resources/grib1/nasa/README*.pdf</exclude> |
| <exclude>resources/grib1/**/readme*.txt</exclude> |
| <exclude>resources/grib2/**/readme*.txt</exclude> |
| <!-- TIKA-763: Workaround to avoid including LGPL classes --> |
| <exclude>ucar/nc2/iosp/fysat/Fysat*.class</exclude> |
| <exclude>ucar/nc2/dataset/transform/VOceanSG1*class</exclude> |
| <exclude>ucar/unidata/geoloc/vertical/OceanSG*.class</exclude> |
| |
| </excludes> |
| </filter> |
| </filters> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <mainClass>org.apache.tika.cli.TikaCLI</mainClass> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/LICENSE</resource> |
| <file>target/classes/META-INF/LICENSE</file> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/NOTICE</resource> |
| <file>target/classes/META-INF/NOTICE</file> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/DEPENDENCIES</resource> |
| <file>target/classes/META-INF/DEPENDENCIES</file> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| <resource>META-INF/cxf/bus-extensions.txt</resource> |
| </transformer> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>src/test/resources/test-data/**</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>ikvm</id> |
| <activation> |
| <file> |
| <exists>${ikvm}/bin/ikvmc.exe</exists> |
| </file> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <exec executable="${ikvm}/bin/ikvmc.exe"> |
| <arg value="-nowarn:0100" /> |
| <arg value="-nowarn:0105" /> |
| <arg value="-nowarn:0109" /> |
| <arg value="-nowarn:0111" /> |
| <arg value="-nowarn:0112" /> |
| <arg value="-reference:${ikvm}/bin/IKVM.OpenJDK.Util.dll" /> |
| <arg value="-reference:${ikvm}/bin/IKVM.OpenJDK.Charsets.dll" /> |
| <arg value="-reference:${ikvm}/bin/IKVM.OpenJDK.Text.dll" /> |
| <arg value="-reference:${ikvm}/bin/IKVM.OpenJDK.Core.dll" /> |
| <arg value="-reference:${ikvm}/bin/IKVM.AWT.WinForms.dll" /> |
| <arg value="-reference:${ikvm}/bin/IKVM.OpenJDK.Media.dll" /> |
| <arg value="-reference:${ikvm}/bin/IKVM.OpenJDK.Misc.dll" /> |
| <arg value="-reference:${ikvm}/bin/IKVM.OpenJDK.Security.dll" /> |
| <arg value="-reference:${ikvm}/bin/IKVM.OpenJDK.SwingAWT.dll" /> |
| <arg value="-target:library" /> |
| <arg value="-compressresources" /> |
| <arg value="-out:${project.build.directory}/${project.build.finalName}.dll" /> |
| <arg value="${project.build.directory}/${project.build.finalName}.jar" /> |
| </exec> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.7</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>attach-artifact</goal> |
| </goals> |
| <configuration> |
| <artifacts> |
| <artifacts> |
| <file>${project.build.directory}/${project.build.finalName}.dll</file> |
| <type>dll</type> |
| </artifacts> |
| </artifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| <organization> |
| <name>The Apache Software Foundation</name> |
| <url>http://www.apache.org</url> |
| </organization> |
| <issueManagement> |
| <system>JIRA</system> |
| <url>https://issues.apache.org/jira/browse/TIKA</url> |
| </issueManagement> |
| <ciManagement> |
| <system>Jenkins</system> |
| <url>https://builds.apache.org/job/Tika-trunk/</url> |
| </ciManagement> |
| </project> |