[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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
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...?)


- Steinar

Reply to: