/** * Display helpful information regarding all documented goals. * * @param pluginOnly * show information for the given plugin only * @param plugin * plugin to show info for */ protected void displayGoals( boolean pluginOnly, String plugin ) { String title = MavenUtils.getMessage( "displayGoals.title" ); if ( pluginOnly ) { title = ( plugin == null ? MavenUtils.getMessage( "displayGoals.title.pluginOnly.null" ) : MavenUtils.getMessage( "displayGoals.title.pluginOnly.notNull" ) + plugin ); } LOGGER.info( title ); LOGGER.info( format( "", title.length(), '=' ) ); Set goals = mavenSession.getAllGoalNames(); displayGoals( pluginOnly, plugin, goals ); }