Update compile

Added an env parameter to the maven command