MAINT: add mvn error checking