Added switch for maven builds