~bigdata-dev/bigdata-data/snap-spark

« back to all changes in this revision

Viewing changes to snap/sources/patch-do-component-build.diff

  • Committer: Kevin W Monroe
  • Date: 2017-09-29 20:47:18 UTC
  • Revision ID: git-v1:6daa2cf696a649cc864785c8b6b53d69363e5101
add m2 settings (patch do-comp-build)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- a/bigtop-packages/src/common/spark/do-component-build       2017-06-01 16:21:26.000000000 -0500
 
2
+++ b/bigtop-packages/src/common/spark/do-component-build       2017-09-07 18:50:51.000000000 -0500
 
3
@@ -16,6 +16,11 @@
 
4
 
 
5
 set -ex
 
6
 
 
7
+# Snap builders create a proxy-aware m2 settings file; use it if present
 
8
+if [ -f $SNAPCRAFT_PART_INSTALL/../m2/settings.xml ] ; then
 
9
+  mkdir -p $HOME/.m2 && ln -s $SNAPCRAFT_PART_INSTALL/../m2/settings.xml $HOME/.m2/settings.xml
 
10
+fi
 
11
+
 
12
 . `dirname $0`/bigtop.bom
 
13
 
 
14
 # BIGTOP-2607