Specify maven repo location.

By default it chooses a location based on $HOME which is not guranteed to
have a proper value on buildds.

We also need to take care of cleaning it up after the build.

Signed-off-by: Wido den Hollander <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6e0867b3
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6e0867b3
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6e0867b3

Branch: refs/heads/master
Commit: 6e0867b307e86b6823a316d66084a8916696ab9d
Parents: f1301a2
Author: Felix Geyer <[email protected]>
Authored: Mon Feb 16 12:41:47 2015 +0100
Committer: Wido den Hollander <[email protected]>
Committed: Thu Mar 5 14:35:52 2015 +0100

----------------------------------------------------------------------
 debian/rules | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6e0867b3/debian/rules
----------------------------------------------------------------------
diff --git a/debian/rules b/debian/rules
index 08fca4c..d55d251 100755
--- a/debian/rules
+++ b/debian/rules
@@ -37,6 +37,7 @@ build-indep: build-indep-stamp
 build-indep-stamp: configure
        mvn -T C1.5 clean package -Pawsapi -DskipTests -Dsystemvm \
         -Dcs.replace.properties=replace.properties.tmp \
+               -Dmaven.repo.local=$(CURDIR)/mavenrepo \
                ${ACS_BUILD_OPTS}
        touch $@
 
@@ -45,6 +46,7 @@ clean:
        dh_testroot
        rm -f build-arch-stamp build-indep-stamp configure-stamp
        rm -f replace.properties.tmp
+       rm -rf mavenrepo
        dh_clean
 
 install:

Reply via email to