|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + <groupId>com.yahoo.ml</groupId> |
| 7 | + <artifactId>tensorflowonspark</artifactId> |
| 8 | + <version>1.0-SNAPSHOT</version> |
| 9 | + <packaging>jar</packaging> |
| 10 | + <name>tensorflowonspark</name> |
| 11 | + <description>Spark scala inferencing for TensorFlowOnSpark</description> |
| 12 | + |
| 13 | + <properties> |
| 14 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 15 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 16 | + |
| 17 | + <hadoop_version>2.7.2</hadoop_version> |
| 18 | + <spark.version>2.1.0</spark.version> |
| 19 | + <scala.version>2.11.8</scala.version> |
| 20 | + <scala-test.version>3.0.3</scala-test.version> |
| 21 | + <scopt.version>3.7.0</scopt.version> |
| 22 | + <tensorflow.version>1.4.0</tensorflow.version> |
| 23 | + </properties> |
| 24 | + <dependencies> |
| 25 | + <dependency> |
| 26 | + <groupId>org.apache.spark</groupId> |
| 27 | + <artifactId>spark-core_2.11</artifactId> |
| 28 | + <version>${spark.version}</version> |
| 29 | + <scope>provided</scope> |
| 30 | + </dependency> |
| 31 | + <dependency> |
| 32 | + <groupId>org.apache.spark</groupId> |
| 33 | + <artifactId>spark-sql_2.11</artifactId> |
| 34 | + <version>${spark.version}</version> |
| 35 | + <scope>provided</scope> |
| 36 | + </dependency> |
| 37 | + <dependency> |
| 38 | + <groupId>org.apache.spark</groupId> |
| 39 | + <artifactId>spark-mllib_2.11</artifactId> |
| 40 | + <version>${spark.version}</version> |
| 41 | + <scope>provided</scope> |
| 42 | + </dependency> |
| 43 | + <dependency> |
| 44 | + <groupId>org.scala-lang</groupId> |
| 45 | + <artifactId>scala-library</artifactId> |
| 46 | + <version>${scala.version}</version> |
| 47 | + </dependency> |
| 48 | + <dependency> |
| 49 | + <groupId>org.scala-lang.modules</groupId> |
| 50 | + <artifactId>scala-parser-combinators_2.11</artifactId> |
| 51 | + <version>1.1.0</version> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>org.tensorflow</groupId> |
| 55 | + <artifactId>tensorflow</artifactId> |
| 56 | + <version>${tensorflow.version}</version> |
| 57 | + </dependency> |
| 58 | + <dependency> |
| 59 | + <groupId>org.tensorflow</groupId> |
| 60 | + <artifactId>tensorflow-hadoop</artifactId> |
| 61 | + <version>1.0-SNAPSHOT</version> |
| 62 | + </dependency> |
| 63 | + <dependency> |
| 64 | + <groupId>org.scalatest</groupId> |
| 65 | + <artifactId>scalatest_2.11</artifactId> |
| 66 | + <version>${scala-test.version}</version> |
| 67 | + <scope>test</scope> |
| 68 | + </dependency> |
| 69 | + <dependency> |
| 70 | + <groupId>com.github.scopt</groupId> |
| 71 | + <artifactId>scopt_2.11</artifactId> |
| 72 | + <version>${scopt.version}</version> |
| 73 | + </dependency> |
| 74 | + <dependency> |
| 75 | + <groupId>org.json4s</groupId> |
| 76 | + <artifactId>json4s-native_2.11</artifactId> |
| 77 | + <version>3.5.3</version> |
| 78 | + </dependency> |
| 79 | + </dependencies> |
| 80 | + |
| 81 | + <build> |
| 82 | + <plugins> |
| 83 | + <plugin> |
| 84 | + <groupId>net.alchim31.maven</groupId> |
| 85 | + <artifactId>scala-maven-plugin</artifactId> |
| 86 | + <version>3.2.1</version> |
| 87 | + <executions> |
| 88 | + <execution> |
| 89 | + <goals> |
| 90 | + <goal>compile</goal> |
| 91 | + <goal>testCompile</goal> |
| 92 | + </goals> |
| 93 | + </execution> |
| 94 | + </executions> |
| 95 | + <configuration> |
| 96 | + <scalaVersion>${scala.version}</scalaVersion> |
| 97 | + </configuration> |
| 98 | + </plugin> |
| 99 | + <!-- disable surefire --> |
| 100 | + <plugin> |
| 101 | + <groupId>org.apache.maven.plugins</groupId> |
| 102 | + <artifactId>maven-surefire-plugin</artifactId> |
| 103 | + <version>2.20.1</version> |
| 104 | + <configuration> |
| 105 | + <skipTests>true</skipTests> |
| 106 | + </configuration> |
| 107 | + </plugin> |
| 108 | + <!-- enable scalatest --> |
| 109 | + <plugin> |
| 110 | + <groupId>org.scalatest</groupId> |
| 111 | + <artifactId>scalatest-maven-plugin</artifactId> |
| 112 | + <version>1.0</version> |
| 113 | + <configuration> |
| 114 | + <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory> |
| 115 | + <junitxml>.</junitxml> |
| 116 | + <filereports>WDF TestSuite.txt</filereports> |
| 117 | + </configuration> |
| 118 | + <executions> |
| 119 | + <execution> |
| 120 | + <goals> |
| 121 | + <goal>test</goal> |
| 122 | + </goals> |
| 123 | + </execution> |
| 124 | + </executions> |
| 125 | + </plugin> |
| 126 | + <plugin> |
| 127 | + <groupId>org.apache.maven.plugins</groupId> |
| 128 | + <artifactId>maven-shade-plugin</artifactId> |
| 129 | + <version>2.1</version> |
| 130 | + <executions> |
| 131 | + <execution> |
| 132 | + <phase>package</phase> |
| 133 | + <goals> |
| 134 | + <goal>shade</goal> |
| 135 | + </goals> |
| 136 | + <configuration> |
| 137 | + <artifactSet> |
| 138 | + <excludes> |
| 139 | + <exclude>org.apache.hadoop:*</exclude> |
| 140 | + </excludes> |
| 141 | + </artifactSet> |
| 142 | + <relocations> |
| 143 | + <relocation> |
| 144 | + <pattern>com.google.protobuf</pattern> |
| 145 | + <shadedPattern>org.tensorflow.hadoop.shaded.protobuf</shadedPattern> |
| 146 | + </relocation> |
| 147 | + </relocations> |
| 148 | + </configuration> |
| 149 | + </execution> |
| 150 | + </executions> |
| 151 | + </plugin> |
| 152 | + </plugins> |
| 153 | + </build> |
| 154 | + |
| 155 | +</project> |
0 commit comments