NEXUS-6094: Staging Mojos made aware of build failures

As in case of -fae switch, Mojo might be invoked to stage
even if no staging should occur.

Issue
https://issues.sonatype.org/browse/NEXUS-6094

CI
TBD