| <?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.any23</groupId> |
| <artifactId>apache-any23</artifactId> |
| <version>2.4-SNAPSHOT</version> |
| <relativePath>../</relativePath> |
| </parent> |
| |
| <artifactId>apache-any23-cli</artifactId> |
| |
| <name>Apache Any23 :: CLI</name> |
| <description>Command line interface.</description> |
| |
| <dependencies> |
| |
| <!-- BEGIN: Any23 --> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>apache-any23-api</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>apache-any23-core</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>apache-any23-core</artifactId> |
| <version>${project.version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>apache-any23-csvutils</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>apache-any23-mime</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>apache-any23-encoding</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>apache-any23-test-resources</artifactId> |
| <version>${project.version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <!-- Disabled due to memory overhead during test execution --> |
| <!--dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>apache-any23-openie</artifactId> |
| <version>${project.version}</version> |
| <scope>runtime</scope> |
| </dependency--> |
| <dependency> |
| <groupId>${project.groupId}.plugins</groupId> |
| <artifactId>apache-any23-office-scraper</artifactId> |
| <version>${project.version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}.plugins</groupId> |
| <artifactId>apache-any23-html-scraper</artifactId> |
| <version>${project.version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| <!-- END: Any23 --> |
| |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpcore</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.beust</groupId> |
| <artifactId>jcommander</artifactId> |
| </dependency> |
| |
| <!-- BEGIN: Tika --> |
| <dependency> |
| <groupId>org.apache.tika</groupId> |
| <artifactId>tika-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tika</groupId> |
| <artifactId>tika-parsers</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-annotations</artifactId> |
| </dependency> |
| <!-- END: Tika --> |
| |
| <!-- BEGIN: RDF4J --> |
| <dependency> |
| <groupId>org.eclipse.rdf4j</groupId> |
| <artifactId>rdf4j-model</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.rdf4j</groupId> |
| <artifactId>rdf4j-rio-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.rdf4j</groupId> |
| <artifactId>rdf4j-rio-jsonld</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.rdf4j</groupId> |
| <artifactId>rdf4j-rio-turtle</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.rdf4j</groupId> |
| <artifactId>rdf4j-rio-rdfxml</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.rdf4j</groupId> |
| <artifactId>rdf4j-rio-ntriples</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.rdf4j</groupId> |
| <artifactId>rdf4j-rio-trix</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.rdf4j</groupId> |
| <artifactId>rdf4j-repository-sail</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.rdf4j</groupId> |
| <artifactId>rdf4j-sail-memory</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.rdf4j</groupId> |
| <artifactId>rdf4j-repository-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.github.jsonld-java</groupId> |
| <artifactId>jsonld-java</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>fluent-hc</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpcore-nio</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpcore-osgi</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient-osgi</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpmime</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.semarglproject</groupId> |
| <artifactId>semargl-rdf4j</artifactId> |
| </dependency> |
| <!-- END: RDF4J --> |
| |
| <!-- BEGIN: Apache Commons, this version is hosted in the |
| any23-repository-external repository --> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-csv</artifactId> |
| </dependency> |
| <!-- END: Apache Commons CSV --> |
| |
| <!-- BEGIN: Test Dependencies --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <scope>runtime</scope> |
| <optional>true</optional> |
| </dependency> |
| <!-- END: Test Dependencies --> |
| |
| <!-- BEGIN: additional dependencies used by RDF4J or Tika |
| (include to ensure versions match those specified in |
| dependencyManagement section of parent pom) --> |
| <dependency> <!-- used by Tika --> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpmime</artifactId> |
| </dependency> |
| <dependency> <!-- used by RDF4J --> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient-cache</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> <!-- used by Tika --> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-compress</artifactId> |
| </dependency> |
| <dependency> <!-- used by Tika --> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| </dependency> |
| <dependency> <!-- used by Tika --> |
| <groupId>org.jsoup</groupId> |
| <artifactId>jsoup</artifactId> |
| </dependency> |
| <dependency> <!-- used by Tika --> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> <!-- used by Tika, also replaces httpclient commons-logging dependency --> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jcl-over-slf4j</artifactId> |
| </dependency> |
| <dependency> <!-- used by Tika --> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jul-to-slf4j</artifactId> |
| </dependency> |
| <dependency> <!-- used by Tika --> |
| <groupId>org.apache.poi</groupId> |
| <artifactId>poi</artifactId> |
| </dependency> |
| <dependency> <!-- used by Tika --> |
| <groupId>org.apache.poi</groupId> |
| <artifactId>poi-scratchpad</artifactId> |
| </dependency> |
| <dependency> <!-- used by Tika --> |
| <groupId>org.apache.poi</groupId> |
| <artifactId>poi-ooxml</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>stax</groupId> |
| <artifactId>stax-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- END: additional dependencies used by RDF4J or Tika --> |
| |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>${basedir}/src/main/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| |
| <resource> |
| <directory>${basedir}/../</directory> |
| <targetPath>META-INF</targetPath> |
| <includes> |
| <include>LICENSE.txt</include> |
| <include>NOTICE.txt</include> |
| </includes> |
| </resource> |
| </resources> |
| |
| <plugins> |
| <!-- generates the bin launchers --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>appassembler-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>assemble</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <programs> |
| <program> |
| <mainClass>org.apache.any23.cli.ToolRunner</mainClass> |
| <id>any23</id> |
| <jvmSettings> |
| <maxMemorySize>6000m</maxMemorySize> |
| </jvmSettings> |
| </program> |
| </programs> |
| <configurationDirectory>conf</configurationDirectory> |
| <copyConfigurationDirectory>true</copyConfigurationDirectory> |
| </configuration> |
| </plugin> |
| |
| <!-- Generates the distribution package --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <appendAssemblyId>false</appendAssemblyId> |
| <descriptors> |
| <descriptor>${basedir}/src/main/assembly/bin.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- Does NOT forbid calls to jdk-system-out --> |
| <plugin> |
| <groupId>de.thetaphi</groupId> |
| <artifactId>forbiddenapis</artifactId> |
| <version>${forbiddenapis.version}</version> |
| <configuration> |
| <failOnUnsupportedJava>false</failOnUnsupportedJava> |
| <failOnUnresolvableSignatures>false</failOnUnresolvableSignatures> |
| <bundledSignatures> |
| <!-- https://github.com/policeman-tools/forbidden-apis/wiki/BundledSignatures --> |
| <bundledSignature>jdk-unsafe-${javac.src.version}</bundledSignature> |
| <bundledSignature>jdk-deprecated-${javac.src.version}</bundledSignature> |
| <bundledSignature>jdk-non-portable</bundledSignature> |
| <!-- comment out until we upgrade past Java 8 --> |
| <!--bundledSignature>jdk-reflection</bundledSignature--> |
| <bundledSignature>jdk-internal-${javac.src.version}</bundledSignature> |
| <!--bundledSignature>jdk-system-out</bundledSignature--> |
| <bundledSignature>commons-io-unsafe-${commons-io.version}</bundledSignature> |
| </bundledSignatures> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>check</goal> |
| <!--goal>testCheck</goal--> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>release</id> |
| <build> |
| <resources> |
| <resource> |
| <directory>${basedir}/../</directory> |
| <targetPath>${project.build.directory}/apidocs/META-INF</targetPath> |
| <includes> |
| <include>LICENSE.txt</include> |
| <include>NOTICE.txt</include> |
| </includes> |
| </resource> |
| </resources> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |