support for both maven 3.0 and 3.1

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>