Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for ProjectBuildingException (0.11 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingException.java

     * @deprecated use {@code org.apache.maven.api.services.ProjectBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    public class ProjectBuildingException extends Exception {
        private final String projectId;
    
        private File pomFile;
    
        private List<ProjectBuildingResult> results;
    
        public ProjectBuildingException(String projectId, String message, Throwable cause) {
            super(createMessage(message, projectId, null), cause);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jul 26 19:15:57 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java

                if (normalized) {
                    return repos;
                }
            }
    
            return (List<ArtifactRepository>) repositories;
        }
    
        private ProjectBuildingException transformError(ProjectBuildingException e) {
            if (e.getCause() instanceof ModelBuildingException) {
                return new InvalidProjectModelException(e.getProjectId(), e.getMessage(), e.getPomFile());
            }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. impl/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java

                    "src/test/resources/projects/parent-version-range-local-child-without-version/child/pom.xml");
    
            ProjectBuildingException e = assertThrows(
                    ProjectBuildingException.class,
                    () -> getProject(f1),
                    "Expected 'ProjectBuildingException' not thrown.");
            assertEquals(1, e.getResults().size());
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  4. 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;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 10:13:56 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  5. impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuildingExceptionTest.java

                    new DefaultProjectBuildingResult("com.example:project2:1.0", new File("project2/pom.xml"), problems2);
            results.add(result2);
    
            ProjectBuildingException exception = new ProjectBuildingException(results);
            String message = exception.getMessage();
    
            assertTrue(
                    message.contains("3 problems were encountered while processing the POMs (2 errors)"),
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jul 26 19:15:57 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  6. impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java

            ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest();
            configuration.setRepositorySession(mavenSession.getRepositorySession());
    
            ProjectBuildingException e = assertThrows(ProjectBuildingException.class, () -> getContainer()
                    .lookup(org.apache.maven.project.ProjectBuilder.class)
                    .build(pomFile, configuration));
            assertEquals(1, e.getResults().size());
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                throws ProjectBuildingException {
            try (BuildSession bs = new BuildSession(request)) {
                return bs.build(false, null, modelSource);
            }
        }
    
        @Override
        public ProjectBuildingResult build(Artifact artifact, ProjectBuildingRequest request)
                throws ProjectBuildingException {
            return build(artifact, false, request);
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 17:20:31 UTC 2025
    - 51.8K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/project/collector/MultiModuleCollectionStrategy.java

    import org.apache.maven.plugin.PluginManagerException;
    import org.apache.maven.plugin.PluginResolutionException;
    import org.apache.maven.project.MavenProject;
    import org.apache.maven.project.ProjectBuildingException;
    import org.apache.maven.project.ProjectBuildingResult;
    import org.eclipse.aether.resolution.ArtifactResolutionException;
    import org.eclipse.aether.transfer.ArtifactNotFoundException;
    import org.slf4j.Logger;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/project/collector/DefaultProjectsSelector.java

    import org.apache.maven.model.building.ModelProblemUtils;
    import org.apache.maven.project.MavenProject;
    import org.apache.maven.project.ProjectBuilder;
    import org.apache.maven.project.ProjectBuildingException;
    import org.apache.maven.project.ProjectBuildingRequest;
    import org.apache.maven.project.ProjectBuildingResult;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Sep 30 08:09:09 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  10. 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) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top