| <?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/xsd/maven-4.0.0.xsd"> |
| <parent> |
| <artifactId>tika-server</artifactId> |
| <groupId>org.apache.tika</groupId> |
| <version>2.8.1-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>tika-server-eval</artifactId> |
| <name>Apache Tika server tika-eval handler</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>tika-eval-core</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>tika-server-core</artifactId> |
| <version>${project.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>${maven.shade.version}</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createDependencyReducedPom> |
| false |
| </createDependencyReducedPom> |
| <artifactSet> |
| <excludes> |
| <!-- there has to be a better way --> |
| <exclude>org.apache.tika:tika-server-core:jar:</exclude> |
| <exclude>org.apache.tika:tika-core:jar:</exclude> |
| <exclude>org.apache.tika:tika-serialization:jar:</exclude> |
| <exclude>org.apache.tika:tika-langdetect-opennlp:jar:</exclude> |
| <exclude>commons-io:commons-io:jar:</exclude> |
| <exclude>commons-codec:commons-codec:jar:</exclude> |
| <exclude>org.apache.commons:commons-lang3:jar:</exclude> |
| <exclude>org.apache.commons:commons-math3:jar:</exclude> |
| <exclude>org.apache.lucene:lucene-core:jar:</exclude> |
| <exclude>org.apache.lucene:lucene-analyzers-common:jar:</exclude> |
| <exclude>org.apache.lucene:lucene-analyzers-icu:jar:</exclude> |
| <exclude>org.ccil.cowan.tagsoup:tagsoup:jar:</exclude> |
| <exclude>com.ibm.icu:icu4j:jar:</exclude> |
| <exclude>com.fasterxml.jackson.core:jackson-core:jar:</exclude> |
| <exclude>com.fasterxml.jackson.core:jackson-databind:jar:</exclude> |
| <exclude>com.fasterxml.jackson.core:jackson-annotations:jar:</exclude> |
| <exclude>org.apache.opennlp:opennlp-tools:jar:</exclude> |
| <exclude>org.slf4j:slf4j-api:jar:</exclude> |
| </excludes> |
| </artifactSet> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>module-info.class</exclude> |
| <exclude>META-INF/*</exclude> |
| <exclude>LICENSE.txt</exclude> |
| <exclude>NOTICE.txt</exclude> |
| <exclude>CHANGES</exclude> |
| <exclude>README</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <manifestEntries> |
| <Multi-Release>true</Multi-Release> |
| </manifestEntries> |
| </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> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifestEntries> |
| <Automatic-Module-Name>org.apache.tika.app</Automatic-Module-Name> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| </plugins> |
| </build> |
| </project> |