| <?xml version='1.0'?> |
| |
| <!-- |
| 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"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.rya</groupId> |
| <artifactId>rya.extras</artifactId> |
| <version>3.2.13-incubating-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>rya.merger</artifactId> |
| <packaging>jar</packaging> |
| |
| <name>Apache Rya Merge Tool</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-plugin-api</artifactId> |
| <version>2.0</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugin-tools</groupId> |
| <artifactId>maven-plugin-annotations</artifactId> |
| <version>3.2</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.plexus</groupId> |
| <artifactId>plexus-utils</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.8.2</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.rya</groupId> |
| <artifactId>rya.mapreduce</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.rya</groupId> |
| <artifactId>mongodb.rya</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.rya</groupId> |
| <artifactId>rya.indexing</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.accumulo</groupId> |
| <artifactId>accumulo-core</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.accumulo</groupId> |
| <artifactId>accumulo-start</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-client</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.zookeeper</groupId> |
| <artifactId>zookeeper</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>com.sun.jmx</groupId> |
| <artifactId>jmxri</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jdmk</groupId> |
| <artifactId>jmxtools</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.jms</groupId> |
| <artifactId>jms</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-cli</groupId> |
| <artifactId>commons-cli</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.beust</groupId> |
| <artifactId>jcommander</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.twitter4j</groupId> |
| <artifactId>twitter4j-stream</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.accumulo</groupId> |
| <artifactId>accumulo-minicluster</artifactId> |
| <!-- TODO: RYA-194 --> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <!-- Accumulo data Files --> |
| <exclude>**/*.rf</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| |
| <!-- |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifest> |
| <mainClass>org.apache.rya.accumulo.mr.merge.MergeTool</mainClass> |
| </manifest> |
| </archive> |
| <descriptorRefs> |
| <descriptorRef>jar-with-dependencies</descriptorRef> |
| </descriptorRefs> |
| </configuration> |
| </plugin> |
| --> |
| |
| <!-- |
| Create shaded jar with all the dependencies |
| --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>2.4.3</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.rya.accumulo.mr.merge.MergeTool</Main-Class>--> |
| </manifestEntries> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| </transformers> |
| <artifactSet> |
| <excludes> |
| <exclude>org.apache.accumulo:accumulo-native</exclude> |
| </excludes> |
| </artifactSet> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- |
| Creates the lib directory with all the dependencies |
| --> |
| <plugin> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>install</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>false</overWriteSnapshots> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- |
| Creates the rya.merger-*.jar |
| --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifest> |
| <addClasspath>true</addClasspath> |
| <classpathPrefix>lib</classpathPrefix> |
| <!--Removing main-class from manifest so hadoop command will be able to call multiple main classes--> |
| <!--<mainClass>org.apache.rya.accumulo.mr.merge.MergeTool</mainClass>--> |
| </manifest> |
| <manifestEntries> |
| <Built-By /> |
| <Class-Path>lib/</Class-Path> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </plugin> |
| |
| <!-- |
| Copies all needed files into target/distribution/rya.merger-${project.version} |
| --> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.7</version> |
| <executions> |
| <execution> |
| <id>copy-resource-bin</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/distribution/${project.artifactId}-${project.version}/bin</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${basedir}/startup_scripts</directory> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-resource-config</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/distribution/${project.artifactId}-${project.version}/config</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${basedir}/config</directory> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-resource-lib</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/distribution/${project.artifactId}-${project.version}/lib</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${project.build.directory}/lib</directory> |
| <includes> |
| <include>*.jar</include> |
| </includes> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-resource-jar</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/distribution/${project.artifactId}-${project.version}/</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${project.build.directory}</directory> |
| <includes> |
| <include>rya.merger-*.jar</include> |
| <include>README.md</include> |
| </includes> |
| <excludes> |
| <exclude>rya.merger-*-shaded.jar</exclude> |
| <exclude>rya.merger-*-sources.jar</exclude> |
| </excludes> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>copy-resource-readme</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/distribution/${project.artifactId}-${project.version}/</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${basedir}</directory> |
| <includes> |
| <include>README.md</include> |
| </includes> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- Creates a single zip file with all files needed to run the merge tool --> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.5.3</version> |
| <configuration> |
| <descriptors> |
| <descriptor>${basedir}/assembly.xml</descriptor> |
| </descriptors> |
| </configuration> |
| <executions> |
| <execution> |
| <id>build-zip</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- |
| ### Add a mainClass to run below. This will fill in your classpath from the maven repo. |
| mvn exec:java@MergeTool |
| mvn exec:java@CopyTool |
| --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.2.1</version> |
| <executions> |
| <execution> |
| <id>MergeTool</id> |
| <goals> |
| <goal>java</goal> |
| </goals> |
| <configuration> |
| <mainClass>org.apache.rya.accumulo.mr.merge.MergeTool</mainClass> |
| <systemProperties> |
| <systemProperty> |
| <key>log4j.configuration</key> |
| <value>file:config/log4j.xml</value> |
| </systemProperty> |
| </systemProperties> |
| <arguments> |
| <argument>-conf</argument> |
| <argument>config/configuration.xml</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| <execution> |
| <id>CopyTool</id> |
| <goals> |
| <goal>java</goal> |
| </goals> |
| <configuration> |
| <mainClass>org.apache.rya.accumulo.mr.merge.CopyTool</mainClass> |
| <systemProperties> |
| <systemProperty> |
| <key>log4j.configuration</key> |
| <value>file:config/copy_tool_log4j.xml</value> |
| </systemProperty> |
| </systemProperties> |
| <arguments> |
| <argument>-conf</argument> |
| <argument>config/copy_tool_configuration.xml</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |