dpkg-buildpackage mvn command tries to use /root/.m2/repository
When I run "dpkg-buildpackage -us -uc -b" on a packaging area with this
control file
https://gist.github.com/steinarb/5b0b6d771e2fae3873abac15c21a4f82
it fails with:
(cd unpacked-src; mvn clean install -DskipTests=true )
[ERROR] Could not create local repository at /root/.m2/repository -> [Help 1]
I'm running as my own user.
I've tried setting
export M2_REPO=/home/sb/.m2/repository
but it didn't help.
Do I need to be root to build a debian package? (I thought fakeroot took
care of the path access stuff...?)
Thanks!
- Steinar
Reply to: