Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
148757e8
Commit
148757e8
authored
11 years ago
by
Mark Hamstra
Browse files
Options
Downloads
Patches
Plain Diff
Add deb profile to assembly/pom.xml
parent
74b46acd
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
assembly/pom.xml
+115
-1
115 additions, 1 deletion
assembly/pom.xml
assembly/src/deb/RELEASE
+2
-0
2 additions, 0 deletions
assembly/src/deb/RELEASE
assembly/src/deb/control/control
+8
-0
8 additions, 0 deletions
assembly/src/deb/control/control
with
125 additions
and
1 deletion
assembly/pom.xml
+
115
−
1
View file @
148757e8
...
...
@@ -30,6 +30,13 @@
<name>
Spark Project Assembly
</name>
<url>
http://spark.incubator.apache.org/
</url>
<properties>
<spark.jar>
${project.build.directory}/scala-${scala.binary.version}/${project.artifactId}-${project.version}-hadoop${hadoop.version}.jar
</spark.jar>
<deb.pkg.name>
spark
</deb.pkg.name>
<deb.install.path>
/usr/share/spark
</deb.install.path>
<deb.user>
root
</deb.user>
</properties>
<repositories>
<!-- A repository in the local filesystem for the Py4J JAR, which is not in Maven central -->
<repository>
...
...
@@ -79,7 +86,7 @@
<artifactId>
maven-shade-plugin
</artifactId>
<configuration>
<shadedArtifactAttached>
false
</shadedArtifactAttached>
<outputFile>
${
project.build.directory}/scala-${scala.binary.version}/${project.artifactId}-${project.version}-hadoop${hadoop.version}.jar
</outputFile>
<outputFile>
${
spark.jar}
</outputFile>
<artifactSet>
<includes>
<include>
*:*
</include>
...
...
@@ -171,5 +178,112 @@
</plugins>
</build>
</profile>
<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>
<deb>
${project.build.directory}/${deb.pkg.name}_${project.version}-${buildNumber}_all.deb
</deb>
<attach>
false
</attach>
<compression>
gzip
</compression>
<dataSet>
<data>
<src>
${spark.jar}
</src>
<type>
file
</type>
<mapper>
<type>
perm
</type>
<user>
${deb.user}
</user>
<group>
${deb.user}
</group>
<prefix>
${deb.install.path}/jars
</prefix>
</mapper>
</data>
<data>
<src>
${basedir}/src/deb/RELEASE
</src>
<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}/../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>
<data>
<src>
${basedir}/../bin
</src>
<type>
directory
</type>
<mapper>
<type>
perm
</type>
<user>
${deb.user}
</user>
<group>
${deb.user}
</group>
<prefix>
${deb.install.path}/bin
</prefix>
<filemode>
744
</filemode>
</mapper>
</data>
<data>
<src>
${basedir}/../sbin
</src>
<type>
directory
</type>
<mapper>
<type>
perm
</type>
<user>
${deb.user}
</user>
<group>
${deb.user}
</group>
<prefix>
${deb.install.path}/sbin
</prefix>
<filemode>
744
</filemode>
</mapper>
</data>
<data>
<src>
${basedir}/../python
</src>
<type>
directory
</type>
<mapper>
<type>
perm
</type>
<user>
${deb.user}
</user>
<group>
${deb.user}
</group>
<prefix>
${deb.install.path}/python
</prefix>
<filemode>
744
</filemode>
</mapper>
</data>
</dataSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
This diff is collapsed.
Click to expand it.
assembly/src/deb/RELEASE
0 → 100644
+
2
−
0
View file @
148757e8
compute-classpath.sh uses the existence of this file to decide whether to put the assembly jar on the
classpath or instead to use classfiles in the source tree.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
assembly/src/deb/control/control
0 → 100644
+
8
−
0
View file @
148757e8
Package: [[deb.pkg.name]]
Version: [[version]]-[[buildNumber]]
Section: misc
Priority: extra
Architecture: all
Maintainer: Matei Zaharia <matei.zaharia@gmail.com>
Description: [[name]]
Distribution: development
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment