| <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.tika</groupId> |
| <artifactId>tika-parent</artifactId> |
| <version>2.8.1-SNAPSHOT</version> |
| <relativePath>../tika-parent/pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>tika-core</artifactId> |
| <packaging>bundle</packaging> |
| <name>Apache Tika core</name> |
| <url>https://tika.apache.org/</url> |
| |
| <dependencies> |
| <!-- See https://issues.apache.org/jira/browse/TIKA-2566 for more info --> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| <version>${commons.io.version}</version> |
| </dependency> |
| |
| <!-- Optional OSGi dependencies, used only when running within OSGi --> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.core</artifactId> |
| <version>${osgi.core.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.compendium</artifactId> |
| <version>${osgi.compendium.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>biz.aQute.bnd</groupId> |
| <artifactId>biz.aQute.bndlib</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Test dependencies --> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>${guava.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.martensigwart</groupId> |
| <artifactId>fakeload</artifactId> |
| <version>${fakeload.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <version>${log4j2.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j2-impl</artifactId> |
| <version>${log4j2.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-api</artifactId> |
| <version>${junit5.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-engine</artifactId> |
| <version>${junit5.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <version>${checkstyle.plugin.version}</version> |
| <dependencies> |
| <dependency> |
| <groupId>com.puppycrawl.tools</groupId> |
| <artifactId>checkstyle</artifactId> |
| <version>${puppycrawl.version}</version> |
| </dependency> |
| </dependencies> |
| <executions> |
| <execution> |
| <id>validate</id> |
| <phase>validate</phase> |
| <configuration> |
| <configLocation>checkstyle.xml</configLocation> |
| <inputEncoding>UTF-8</inputEncoding> |
| <consoleOutput>false</consoleOutput> |
| <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| <testSourceDirectories>${project.basedir}/src/test/java</testSourceDirectories> |
| <violationSeverity>error</violationSeverity> |
| <failOnViolation>true</failOnViolation> |
| </configuration> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <version>${maven.bundle.version}</version> |
| <extensions>true</extensions> |
| <configuration> |
| <instructions> |
| <Bundle-DocURL>${project.url}</Bundle-DocURL> |
| <Bundle-Activator> |
| org.apache.tika.config.TikaActivator |
| </Bundle-Activator> |
| <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy> |
| <Import-Package>!sun.misc,org.apache.xerces.util;resolution:=optional, |
| org.apache.commons.io.*;version="[2,3)", |
| *</Import-Package> |
| <Export-Package> |
| org.apache.tika.* |
| </Export-Package> |
| </instructions> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <version>${rat.version}</version> |
| <configuration> |
| <excludes> |
| <exclude>src/test/resources/org/apache/tika/**</exclude> |
| <exclude>src/main/resources/org/apache/tika/language/*.ngp</exclude> |
| <exclude>src/main/resources/org/apache/tika/detect/*.nnmodel</exclude> |
| <exclude>src/test/resources/test-documents/file-list.txt</exclude> |
| <exclude>src/test/resources/test-documents/ang20150420t182050_corr_v1e_img.hdr</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifestEntries> |
| <Automatic-Module-Name>org.apache.tika.core</Automatic-Module-Name> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>clirr-maven-plugin</artifactId> |
| <version>2.8</version> |
| <executions> |
| <execution> |
| <phase>verify</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| <configuration> |
| <comparisonArtifacts> |
| <comparisonArtifact> |
| <groupId>org.apache.tika</groupId> |
| <artifactId>tika-core</artifactId> |
| <version>2.3.0</version> |
| <type>jar</type> |
| </comparisonArtifact> |
| </comparisonArtifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> --> |
| <plugin> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>${maven.failsafe.version}</version> |
| <configuration> |
| <additionalClasspathElements> |
| <additionalClasspathElement> |
| ${project.build.directory}/${project.build.finalName}.jar |
| </additionalClasspathElement> |
| </additionalClasspathElements> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <!-- consider moving the test framework to another regular package --> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assembly/test-jar-with-dependencies.xml</descriptor> |
| </descriptors> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <reporting> |
| <plugins> |
| <!-- to run: mvn site - reports go in target/site/findbugs.html --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>findbugs-maven-plugin</artifactId> |
| <version>3.0.5</version> |
| <configuration> |
| <jvmArgs>-Xmx256m</jvmArgs> |
| <timeout>240000</timeout> |
| <effort>max</effort> |
| <failOnError>true</failOnError> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-project-info-reports-plugin</artifactId> |
| <version>3.4.5</version> |
| <reportSets> |
| <reportSet> |
| <reports> |
| <report>index</report> |
| </reports> |
| </reportSet> |
| </reportSets> |
| </plugin> |
| </plugins> |
| </reporting> |
| |
| <description>This is the core Apache Tika™ toolkit library from which all other modules inherit functionality. It |
| also |
| includes the core facades for the Tika API. |
| </description> |
| <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> |
| |
| <scm> |
| <tag>2.2.1-rc2</tag> |
| </scm> |
| </project> |