Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 58 for getResults (0.05 seconds)

  1. impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java

            assertEquals(1, pex.getResults().size());
            assertNotNull(pex.getResults().get(0).getPomFile());
            assertTrue(pex.getResults().get(0).getProblems().size() > 0);
            ProjectBuildingResultWithProblemMessageAssert.assertThat(
                            pex.getResults().get(0))
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  2. impl/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java

                    ProjectBuildingException.class,
                    () -> getProject(f1),
                    "Expected 'ProjectBuildingException' not thrown.");
            assertEquals(1, e.getResults().size());
            ProjectBuildingResultWithProblemMessageAssert.assertThat(e.getResults().get(0))
                    .hasProblemMessage("Version must be a constant");
        }
    
        /**
         * Tests whether local version range parent references are built correctly.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 33.7K bytes
    - Click Count (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactResolverResult.java

        @Nonnull
        Map<? extends ArtifactCoordinates, ResultItem> getResults();
    
        /**
         * Retrieves the resolution result for a specific set of artifact coordinates.
         *
         * @param coordinates The {@link ArtifactCoordinates} identifying the artifact.
         * @return The corresponding {@link ResultItem}, or {@code null} if no result exists.
         */
        default ResultItem getResult(ArtifactCoordinates coordinates) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/cache/BatchRequestException.java

     * of all requests that were attempted, including both successful and failed operations.
     * <p>
     * The exception provides access to detailed results through {@link #getResults()}, allowing
     * callers to determine which specific requests failed and why.
     *
     * @since 4.0.0
     */
    @Experimental
    public class BatchRequestException extends RuntimeException {
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/project/collector/MultiModuleCollectionStrategy.java

         */
        private boolean isModuleOutsideRequestScopeDependingOnPluginModule(
                MavenExecutionRequest request, ProjectBuildingException exception) {
            return exception.getResults().stream()
                    .map(ProjectBuildingResult::getProject)
                    .filter(Objects::nonNull)
                    .filter(project -> request.getPom().equals(project.getFile()))
                    .findFirst()
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingException.java

            } else {
                return "null";
            }
        }
    
        public String getProjectId() {
            return projectId;
        }
    
        public List<ProjectBuildingResult> getResults() {
            return results;
        }
    
        private static String createMessage(String message, String projectId, File pomFile) {
            StringBuilder buffer = new StringBuilder(256);
            buffer.append(message);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Jul 26 19:15:57 GMT 2025
    - 6K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/project/ProjectBuilder.java

         *         {@code null}.
         * @throws ProjectBuildingException If an error was encountered during building of any project.
         *             {@link ProjectBuildingException#getResults()} provides access to the details of the problems.
         */
        List<ProjectBuildingResult> build(List<File> pomFiles, boolean recursive, ProjectBuildingRequest request)
                throws ProjectBuildingException;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 10:13:56 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java

            List<ExceptionSummary> children = null;
    
            if (exception instanceof ProjectBuildingException projectBuildingException) {
                List<ProjectBuildingResult> results = projectBuildingException.getResults();
    
                children = new ArrayList<>();
    
                for (ProjectBuildingResult result : results) {
                    ExceptionSummary child = handle(result);
                    if (child != null) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                    ArtifactResolverResult.ResultItem resItem = res.getResult(coordinates);
    
                    pomArtifact = InternalMavenSession.from(session).toArtifact(resItem.getArtifact());
                    localProject = resItem.getRepository() instanceof org.apache.maven.api.WorkspaceRepository;
                } catch (ArtifactResolverException e) {
                    if (e.getResult().getResults().values().iterator().next().isMissing() && allowStubModel) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 51.8K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java

                throw new PluginResolutionException(plugin, e.getResult().getExceptions(), e);
            } catch (DependencyResolutionException e) {
                List<Exception> exceptions = Stream.concat(
                                e.getResult().getCollectExceptions().stream(),
                                e.getResult().getArtifactResults().stream()
                                        .filter(r -> !r.isResolved())
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 15:32:43 GMT 2025
    - 12.3K bytes
    - Click Count (0)
Back to Top