Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for getCause (0.2 sec)

  1. maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4Test.java

            Exception e = assertThrows(Exception.class, () -> ee.evaluate("${session.rootDirectory}"));
            e = assertInstanceOf(IntrospectionException.class, e.getCause());
            e = assertInstanceOf(IllegalStateException.class, e.getCause());
            assertEquals(RootLocator.UNABLE_TO_FIND_ROOT_PROJECT_MESSAGE, e.getMessage());
        }
    
        @Test
        void testRootDirectory() throws Exception {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java

            Exception e = assertThrows(Exception.class, () -> ee.evaluate("${session.rootDirectory}"));
            e = assertInstanceOf(IntrospectionException.class, e.getCause());
            e = assertInstanceOf(IllegalStateException.class, e.getCause());
            assertEquals(RootLocator.UNABLE_TO_FIND_ROOT_PROJECT_MESSAGE, e.getMessage());
        }
    
        @Test
        void testRootDirectory() throws Exception {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 08:11:33 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/ProjectBuildFailureException.java

            this.projectId = projectId;
        }
    
        public MojoFailureException getMojoFailureException() {
            return (MojoFailureException) getCause();
        }
    
        public String getProjectId() {
            return projectId;
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

            } catch (ComponentLookupException e) {
                Throwable cause = e.getCause();
                while (cause != null && !(cause instanceof LinkageError) && !(cause instanceof ClassNotFoundException)) {
                    cause = cause.getCause();
                }
    
                if ((cause instanceof NoClassDefFoundError) || (cause instanceof ClassNotFoundException)) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/internal/impl/PathModularization.java

                                }
                                names.put(mf, name);
                            }
                        });
                    } catch (UncheckedIOException e) {
                        throw e.getCause();
                    }
                    if (!names.isEmpty()) {
                        descriptors = Collections.unmodifiableMap(names);
                        isModuleHierarchy = true;
                        return;
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/DefaultMaven.java

            } catch (RuntimeException e) {
                // TODO Hack to make the cycle detection the same for the new graph builder
                if (e.getCause() instanceof ProjectCycleException) {
                    result = addExceptionToResult(new DefaultMavenExecutionResult(), e.getCause());
                } else {
                    result = addExceptionToResult(
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 27.5K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLookup.java

        }
    
        @Override
        public <T> Optional<T> lookupOptional(Class<T> type) {
            try {
                return Optional.of(container.lookup(type));
            } catch (ComponentLookupException e) {
                if (e.getCause() instanceof NoSuchElementException) {
                    return Optional.empty();
                }
                throw new LookupException(e);
            }
        }
    
        @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  8. maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

            configuration.setResolveDependencies(true);
    
            try {
                return projectBuilder.build(pom, configuration).getProject();
            } catch (Exception e) {
                Throwable cause = e.getCause();
                if (cause instanceof ModelBuildingException) {
                    String message = "In: " + pom + "\n\n";
                    for (ModelProblem problem : ((ModelBuildingException) cause).getProblems()) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java

                method.setAccessible(true);
                try {
                    return method.invoke(getScopeState().scope(key, unscoped).get(), args);
                } catch (InvocationTargetException e) {
                    throw e.getCause();
                }
            };
            Class<T> superType = (Class<T>) key.getTypeLiteral().getRawType();
            Class<?>[] interfaces = getInterfaces(superType);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Apr 23 12:52:20 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

                return def;
            }
            String msg = error.getMessage();
            if (msg != null && !msg.isEmpty()) {
                return msg;
            }
            return getMessage(error.getCause(), def);
        }
    
        private ArtifactRepositoryLayout getLayout(String id) {
            ArtifactRepositoryLayout layout = layouts.get(id);
    
            if (layout == null) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Sep 14 11:48:15 GMT 2023
    - 31.6K bytes
    - Viewed (0)
Back to top