correct maven failure check, sbt publication