throw new EnforcerRuleException( "Unable to lookup a component " + e.getLocalizedMessage(), e );
/** * Entry point to the mojo */ public void execute () throws MojoExecutionException { try { EnforcerExpressionEvaluator evaluator = new EnforcerExpressionEvaluator( session, translator, project, mojoExecution ); 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 ); } catch ( ComponentLookupException e ) { getLog().warn( "Unable to Lookup component: " + e.getLocalizedMessage() ); } }
throw new EnforcerRuleException( "Unable to lookup a component:" + e.getLocalizedMessage() );
throw new EnforcerRuleException( "Unable to lookup a component " + e.getLocalizedMessage(), e );
throw new EnforcerRuleException( "Unable to lookup a component:" + e.getLocalizedMessage() );
throw new EnforcerRuleException( "Unable to lookup a component " + e.getLocalizedMessage(), e );
throw new EnforcerRuleException( "Unable to lookup a component " + e.getLocalizedMessage(), e );
throw new EnforcerRuleException( "Unable to lookup a component " + e.getLocalizedMessage(), e );
throw new EnforcerRuleException( "Unable to lookup a component " + e.getLocalizedMessage(), e );
throw new EnforcerRuleException( "Unable to lookup a component " + e.getLocalizedMessage(), e );