| <?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.mahout</groupId> |
| <artifactId>engine</artifactId> |
| <version>0.14.0</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>spark_2.11</artifactId> |
| <name>- Mahout Spark Engine</name> |
| <description> |
| Mahout Bindings for Apache Spark |
| </description> |
| |
| <packaging>jar</packaging> |
| |
| <properties> |
| |
| </properties> |
| |
| <build> |
| <plugins> |
| <!-- ensure licenses --> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| </plugin> |
| |
| <!-- Pre-refactor plugins start here --> |
| |
| |
| <plugin> |
| <artifactId>maven-source-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>net.alchim31.maven</groupId> |
| <artifactId>scala-maven-plugin</artifactId> |
| <version>3.2.2</version> |
| <executions> |
| <execution> |
| <id>add-scala-sources</id> |
| <phase>initialize</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>scala-compile</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>scala-test-compile</id> |
| <phase>process-test-resources</phase> |
| <goals> |
| <goal>testCompile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!--this is what scalatest recommends to do to enable scala tests --> |
| |
| <!-- disable surefire --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <skipTests>true</skipTests> |
| </configuration> |
| </plugin> |
| <!-- enable scalatest --> |
| <plugin> |
| <groupId>org.scalatest</groupId> |
| <artifactId>scalatest-maven-plugin</artifactId> |
| <version>2.0.0</version> |
| <executions> |
| <execution> |
| <id>test</id> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- copy jars to top directory, which is MAHOUT_HOME --> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.4</version> |
| <executions> |
| <execution> |
| <id>copy</id> |
| <phase>package</phase> |
| <configuration> |
| <tasks> |
| <copy file="target/spark_${scala.compat.version}-${project.version}.jar" tofile="../../lib/spark_${scala.compat.version}-${project.version}.jar" /> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>copy-javadocs</id> |
| <phase>install</phase> |
| <configuration> |
| <tasks> |
| <copy file="target/spark_${scala.compat.version}-${project.version}-javadoc.jar" tofile="../../docs/spark_${scala.compat.version}-${project.version}.jar" /> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- create test jar so other modules can reuse the math test utility classes. |
| DO NOT REMOVE! Testing framework is useful in subordinate/contrib projects! |
| Please contact @dlyubimov. |
| --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| <phase>package</phase> |
| </execution> |
| <execution> |
| <id>default-jar</id> |
| <phase>package</phase> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| <!--<configuration>--> |
| <!--<classifier>spark_${spark.compat.version}</classifier>--> |
| <!--</configuration>--> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- delete files on mvn clean --> |
| <plugin> |
| <artifactId>maven-clean-plugin</artifactId> |
| <version>3.0.0</version> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>../../lib/</directory> |
| <includes> |
| <include>spark_*.jar</include> |
| </includes> |
| <followSymlinks>false</followSymlinks> |
| </fileset> |
| </filesets> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| |
| <!-- spark stuff - need to put this first to use spark's mahout dependencies in tests --> |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-core_${scala.compat.version}</artifactId> |
| <version>${spark.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.spark</groupId> |
| <artifactId>spark-mllib_${scala.compat.version}</artifactId> |
| <version>${spark.version}</version> |
| </dependency> |
| |
| <!-- mahout stuff --> |
| <dependency> |
| <groupId>org.apache.mahout</groupId> |
| <artifactId>core_${scala.compat.version}</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.mahout</groupId> |
| <artifactId>mahout-hdfs</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| |
| <!--<dependency>--> |
| <!--<groupId>org.bytedeco</groupId>--> |
| <!--<artifactId>javacpp</artifactId>--> |
| <!--<version>1.2.2</version>--> |
| <!--</dependency>--> |
| |
| <dependency> |
| <groupId>org.apache.mahout</groupId> |
| <artifactId>core_${scala.compat.version}</artifactId> |
| <version>${project.version}</version> |
| <classifier>tests</classifier> |
| <scope>test</scope> |
| </dependency> |
| |
| |
| |
| <!-- 3rd-party --> |
| |
| <!-- scala stuff --> |
| <dependency> |
| <groupId>org.scalatest</groupId> |
| <artifactId>scalatest_${scala.compat.version}</artifactId> |
| <version>3.0.5</version> |
| </dependency> |
| |
| </dependencies> |
| |
| </project> |