Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for getExceptions (0.05 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java

            return this;
        }
    
        @Override
        public List<Throwable> getExceptions() {
            return exceptions;
        }
    
        @Override
        public MavenExecutionResult addException(Throwable t) {
            exceptions.add(t);
    
            return this;
        }
    
        @Override
        public boolean hasExceptions() {
            return !getExceptions().isEmpty();
        }
    
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactResolverResult.java

             *
             * @return A {@link Map} where keys are {@link Repository} instances and values are {@link Exception} instances.
             */
            Map<Repository, List<Exception>> getExceptions();
    
            /**
             * Returns the repository from which the artifact was resolved.
             *
             * @return The {@link Repository} instance.
             */
            Repository getRepository();
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  3. impl/maven-core/src/test/java/org/apache/maven/MavenLifecycleParticipantTest.java

            request.setGoals(Arrays.asList("validate"));
            MavenExecutionResult result = maven.execute(request);
    
            assertFalse(result.hasExceptions(), result.getExceptions().toString());
    
            MavenProject project = result.getProject();
    
            assertEquals("bar", project.getProperties().getProperty("foo"));
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionResolverResult.java

    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     *
     * @since 4.0.0
     */
    @Experimental
    public interface VersionResolverResult extends Result<VersionResolverRequest> {
    
        @Nonnull
        List<Exception> getExceptions();
    
        @Nonnull
        Version getVersion();
    
        @Nonnull
        Optional<Repository> getRepository();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 29 08:17:07 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java

                result.setDependencyGraph(node);
            } catch (DependencyCollectionException e) {
                result.setDependencyGraph(e.getResult().getRoot());
                result.setCollectionErrors(e.getResult().getExceptions());
    
                throw new DependencyResolutionException(
                        result, "Could not collect dependencies for project " + project.getId(), e);
            }
    
            depRequest.setRoot(node);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 10:13:56 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultResolutionErrorHandler.java

            if (result.hasExceptions()) {
                throw new ArtifactResolutionException(
                        "Unknown error during artifact resolution, " + request + ", " + result.getExceptions(),
                        request.getArtifact(),
                        request.getRemoteRepositories());
            }
        }
    
        private static <T> List<T> toList(Collection<T> items) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionResult.java

        // for each exception
        // - knowing what artifacts are missing
        // - project building exception
        // - invalid project model exception: list of markers
        // - xmlpull parser exception
        List<Throwable> getExceptions();
    
        MavenExecutionResult addException(Throwable e);
    
        boolean hasExceptions();
    
        /**
         * Gets the build summary for the specified project.
         *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. impl/maven-core/src/test/java/org/apache/maven/DefaultMavenTest.java

                    createMavenExecutionRequest(getProject("cyclic-reference")).setGoals(asList("validate"));
    
            MavenExecutionResult result = maven.execute(request);
    
            assertEquals(ProjectCycleException.class, result.getExceptions().get(0).getClass());
        }
    
        @Test
        void testMavenProjectNoDuplicateArtifacts() throws Exception {
            MavenProjectHelper mavenProjectHelper = getContainer().lookup(MavenProjectHelper.class);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionRangeResolverResult.java

         * Gets the exceptions that occurred while resolving the version range.
         *
         * @return The list of exceptions that occurred during resolution, never {@code null}
         */
        @Nonnull
        List<Exception> getExceptions();
    
        /**
         * Gets the versions (in ascending order) that matched the requested range.
         *
         * @return The list of matching versions, never {@code null}. An empty list indicates
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 29 08:17:07 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverResult.java

        /**
         * Gets the exceptions that occurred while building the dependency graph.
         *
         * @return the exceptions that occurred, never {@code null}
         */
        @Nonnull
        List<Exception> getExceptions();
    
        /**
         * Gets the root node of the dependency graph.
         *
         * @return the root node of the dependency graph or {@code null} if none
         */
        @Nullable
        Node getRoot();
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Mar 05 14:29:21 UTC 2025
    - 6.3K bytes
    - Viewed (0)
Back to top