aboutsummaryrefslogtreecommitdiff
path: root/yarn/assembly/pom.xml
diff options
context:
space:
mode:
authorRaymond Liu <raymond.liu@intel.com>2013-12-06 16:04:54 +0800
committerRaymond Liu <raymond.liu@intel.com>2014-01-03 12:12:37 +0800
commit96e25e567cddb5327af0b56e810d3f8124677288 (patch)
tree0e709aed29b635326dfba7046e9ee90320742187 /yarn/assembly/pom.xml
parentaec96dd108940b14004bb0895d20f4beceda9ff4 (diff)
downloadspark-96e25e567cddb5327af0b56e810d3f8124677288.tar.gz
spark-96e25e567cddb5327af0b56e810d3f8124677288.tar.bz2
spark-96e25e567cddb5327af0b56e810d3f8124677288.zip
Fix yarn/assemble pom file
Diffstat (limited to 'yarn/assembly/pom.xml')
-rw-r--r--yarn/assembly/pom.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/yarn/assembly/pom.xml b/yarn/assembly/pom.xml
index 7f3539cd42..659b8c5ca7 100644
--- a/yarn/assembly/pom.xml
+++ b/yarn/assembly/pom.xml
@@ -41,5 +41,51 @@
<build>
<outputDirectory>target/scala-${scala.version}/classes</outputDirectory>
<testOutputDirectory>target/scala-${scala.version}/test-classes</testOutputDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>src/assemble/uberjar.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <executions>
+ <execution>
+ <id>uberjar</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>hadoop2-yarn</id>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.spark</groupId>
+ <artifactId>spark-yarn-2.0-api_2.10</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
+
+ <profile>
+ <id>hadoop2.2-yarn</id>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.spark</groupId>
+ <artifactId>spark-yarn-2.2-api_2.10</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+
</project>