There is an expected linkage failure for outdated version of the
enforcer plugin. In order to catch the linkage error we need to
use Throwable instead of Exception here as that also catches
Errors.