try
{
EnforcerExpressionEvaluator evaluator = new EnforcerExpressionEvaluator( session, translator, project );
DefaultEnforcementRuleHelper helper = new DefaultEnforcementRuleHelper( session, evaluator, getLog(),
container );
RuntimeInformation rti = (RuntimeInformation) helper.getComponent( RuntimeInformation.class );
getLog().info( "Maven Version: " + rti.getApplicationVersion() );
getLog().info( "JDK Version: " + SystemUtils.JAVA_VERSION + " normalized as: "
+ RequireJavaVersion.normalizeJDKVersion( SystemUtils.JAVA_VERSION_TRIMMED ) );
RequireOS os = new RequireOS();
os.displayOSInfo( getLog(), true );