2012-12-18 13:44:03 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2013-07-16 20:21:33 -04:00
|
|
|
<!--
|
|
|
|
~ 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.
|
|
|
|
-->
|
|
|
|
|
2012-12-18 13:44:03 -05:00
|
|
|
<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>
|
2013-08-31 22:27:07 -04:00
|
|
|
<groupId>org.apache.spark</groupId>
|
2013-03-15 14:41:51 -04:00
|
|
|
<artifactId>spark-parent</artifactId>
|
2013-09-24 14:41:51 -04:00
|
|
|
<version>0.9.0-incubating-SNAPSHOT</version>
|
2012-12-18 13:44:03 -05:00
|
|
|
<relativePath>../pom.xml</relativePath>
|
|
|
|
</parent>
|
|
|
|
|
2013-08-31 22:27:07 -04:00
|
|
|
<groupId>org.apache.spark</groupId>
|
2013-12-07 02:15:57 -05:00
|
|
|
<artifactId>spark-repl-bin_2.10</artifactId>
|
2012-12-18 13:44:03 -05:00
|
|
|
<packaging>pom</packaging>
|
|
|
|
<name>Spark Project REPL binary packaging</name>
|
2013-09-01 01:45:53 -04:00
|
|
|
<url>http://spark.incubator.apache.org/</url>
|
2012-12-18 13:44:03 -05:00
|
|
|
|
|
|
|
<properties>
|
2013-08-15 19:32:15 -04:00
|
|
|
<deb.pkg.name>spark</deb.pkg.name>
|
|
|
|
<deb.install.path>/usr/share/spark</deb.install.path>
|
2012-12-18 13:44:03 -05:00
|
|
|
<deb.user>root</deb.user>
|
|
|
|
</properties>
|
|
|
|
|
2013-08-15 15:10:31 -04:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
2013-08-31 22:27:07 -04:00
|
|
|
<groupId>org.apache.spark</groupId>
|
2013-12-15 15:39:58 -05:00
|
|
|
<artifactId>spark-core_${scala.binary.version}</artifactId>
|
2013-08-15 15:10:31 -04:00
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2013-08-31 22:27:07 -04:00
|
|
|
<groupId>org.apache.spark</groupId>
|
2013-12-15 15:39:58 -05:00
|
|
|
<artifactId>spark-bagel_${scala.binary.version}</artifactId>
|
2013-08-15 15:10:31 -04:00
|
|
|
<version>${project.version}</version>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2013-08-31 22:27:07 -04:00
|
|
|
<groupId>org.apache.spark</groupId>
|
2013-12-15 15:39:58 -05:00
|
|
|
<artifactId>spark-repl_${scala.binary.version}</artifactId>
|
2013-08-15 15:10:31 -04:00
|
|
|
<version>${project.version}</version>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
2012-12-18 13:44:03 -05:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<shadedArtifactAttached>false</shadedArtifactAttached>
|
2013-08-15 19:32:15 -04:00
|
|
|
<outputFile>${project.build.directory}/${project.artifactId}-${project.version}-shaded.jar</outputFile>
|
2012-12-18 13:44:03 -05:00
|
|
|
<artifactSet>
|
|
|
|
<includes>
|
|
|
|
<include>*:*</include>
|
|
|
|
</includes>
|
|
|
|
</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>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformers>
|
2013-10-05 20:53:11 -04:00
|
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
|
2012-12-18 13:44:03 -05:00
|
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
|
|
|
<resource>reference.conf</resource>
|
|
|
|
</transformer>
|
|
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
|
|
<mainClass>spark.repl.Main</mainClass>
|
|
|
|
</transformer>
|
|
|
|
</transformers>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>deb</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
|
|
|
<version>1.1</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>create</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<shortRevisionLength>8</shortRevisionLength>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.vafer</groupId>
|
|
|
|
<artifactId>jdeb</artifactId>
|
|
|
|
<version>0.11</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jdeb</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2012-12-19 13:20:43 -05:00
|
|
|
<deb>${project.build.directory}/${deb.pkg.name}_${project.version}-${buildNumber}_all.deb</deb>
|
2012-12-18 13:44:03 -05:00
|
|
|
<attach>false</attach>
|
|
|
|
<compression>gzip</compression>
|
|
|
|
<dataSet>
|
|
|
|
<data>
|
2013-08-15 19:32:15 -04:00
|
|
|
<src>${project.build.directory}/${project.artifactId}-${project.version}-shaded.jar</src>
|
2012-12-18 13:44:03 -05:00
|
|
|
<type>file</type>
|
|
|
|
<mapper>
|
|
|
|
<type>perm</type>
|
|
|
|
<user>${deb.user}</user>
|
|
|
|
<group>${deb.user}</group>
|
|
|
|
<prefix>${deb.install.path}</prefix>
|
|
|
|
</mapper>
|
|
|
|
</data>
|
|
|
|
<data>
|
|
|
|
<src>${basedir}/src/deb/bin</src>
|
|
|
|
<type>directory</type>
|
|
|
|
<mapper>
|
|
|
|
<type>perm</type>
|
|
|
|
<user>${deb.user}</user>
|
|
|
|
<group>${deb.user}</group>
|
|
|
|
<prefix>${deb.install.path}</prefix>
|
|
|
|
<filemode>744</filemode>
|
|
|
|
</mapper>
|
|
|
|
</data>
|
|
|
|
<data>
|
|
|
|
<src>${basedir}/../conf</src>
|
|
|
|
<type>directory</type>
|
|
|
|
<mapper>
|
|
|
|
<type>perm</type>
|
|
|
|
<user>${deb.user}</user>
|
|
|
|
<group>${deb.user}</group>
|
|
|
|
<prefix>${deb.install.path}/conf</prefix>
|
|
|
|
<filemode>744</filemode>
|
|
|
|
</mapper>
|
|
|
|
</data>
|
|
|
|
</dataSet>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|