HBASE-12381 use the Maven Enforcer Plugin to check maven and java versions.

Signed-off-by: stack <stack@apache.org>