Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for showErrors (0.05 seconds)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            return execute(context);
        }
    
        protected InvokerException.ExitException handleException(C context, Exception e) {
            printErrors(
                    context,
                    context.options().showErrors().orElse(false),
                    List.of(new Logger.Entry(Logger.Level.ERROR, e.getMessage(), e.getCause())),
                    context.logger);
            return new InvokerException.ExitException(2);
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Oct 28 13:01:07 GMT 2025
    - 43.2K bytes
    - Click Count (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellInvoker.java

                                .builder()
                                .error("Error: " + e.getMessage())
                                .build());
                        if (context.options().showErrors().orElse(false)) {
                            e.printStackTrace(context.terminal.writer());
                        }
                        return ERROR;
                    }
                }
            }
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                return 1;
            } catch (BuildAbort e) {
                CLIReportingUtils.showError(slf4jLogger, "ABORTED", e, cliRequest.showErrors);
    
                return 2;
            } catch (Exception e) {
                CLIReportingUtils.showError(slf4jLogger, "Error executing Maven.", e, cliRequest.showErrors);
    
                return 1;
            } finally {
                if (localContainer != null) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 78.1K bytes
    - Click Count (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java

            } catch (IOException e) {
                System.err.println("Unable determine version from JAR file: " + e.getMessage());
            }
    
            return properties;
        }
    
        public static void showError(Logger logger, String message, Throwable e, boolean showStackTrace) {
            if (logger == null) {
                System.err.println(message);
                if (showStackTrace && e != null) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Mar 10 15:37:54 GMT 2026
    - 6.9K bytes
    - Click Count (0)
Back to Top