| <?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>../../pom.xml</relativePath> |
| </parent> |
| |
| <groupId>org.apache.any23.plugins</groupId> |
| <artifactId>apache-any23-basic-crawler</artifactId> |
| |
| <name>Apache Any23 :: Plugins :: Basic Crawler</name> |
| <description>Any23 plugin for crawling sites.</description> |
| |
| <dependencies> |
| <!-- RDF4J --> |
| <dependency> |
| <groupId>org.eclipse.rdf4j</groupId> |
| <artifactId>rdf4j-model</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Any23 Core. --> |
| <dependency> |
| <groupId>org.apache.any23</groupId> |
| <artifactId>apache-any23-core</artifactId> |
| <version>2.4-SNAPSHOT</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.any23</groupId> |
| <artifactId>apache-any23-core</artifactId> |
| <version>2.4-SNAPSHOT</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.any23</groupId> |
| <artifactId>apache-any23-cli</artifactId> |
| <version>2.4-SNAPSHOT</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.any23</groupId> |
| <artifactId>apache-any23-cli</artifactId> |
| <version>2.4-SNAPSHOT</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- Crawler4j --> |
| <dependency> |
| <groupId>edu.uci.ics</groupId> |
| <artifactId>crawler4j</artifactId> |
| <version>4.4.0</version> |
| <type>jar</type> |
| <scope>compile</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- The CLI interfaces --> |
| <dependency> |
| <groupId>com.beust</groupId> |
| <artifactId>jcommander</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Logging --> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- BEGIN: Test Dependencies --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <!-- END: Test Dependencies --> |
| |
| </dependencies> |
| |
| <build> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <!-- Solve concurrency issues in Crawler4j internal status. --> |
| <forkCount>1</forkCount> |
| <reuseForks>false</reuseForks> |
| </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> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>3.0.0</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <manifestEntries> |
| <Main-Class>org.apache.any23.cli.Crawler</Main-Class> |
| <Build-Number>${implementation.build}</Build-Number> |
| </manifestEntries> |
| </transformer> |
| </transformers> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| <finalName>${project.artifactId}-uber-${project.version}</finalName> |
| </configuration> |
| </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> |