mh_genrules: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/mh_genrules - from package: maven-debian-helper

You may install the required package with command apt-get install {package}
Error in other languages:
mh_genrules: bevel nie gevind nie
mh_genrules: comandă negăsită
mh_genrules: comando não encontrado
mh_genrules: commande introuvable
mh_genrules: command not found
mh_genrules: käsku ei ole
mh_genrules: không tìm thấy lệnh
mh_genrules: komanda nerasta
mh_genrules: Kommando nicht gefunden.
mh_genrules: kommandot finns inte
mh_genrules: komut yok
mh_genrules: nie znaleziono polecenia
mh_genrules: níor aimsíodh an t-ordú
mh_genrules: no se encontró la orden
mh_genrules: no s'ha trobat l'ordre
mh_genrules: opdracht niet gevonden
mh_genrules: parancs nem található
mh_genrules: perintah tidak ditemukan
mh_genrules: príkaz nenájdený
mh_genrules: příkaz nenalezen
mh_genrules: команда не найдена
mh_genrules: командата не е открита
mh_genrules: 命令找不到
mh_genrules: コマンドが見つかりません