Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ProjectBuildingException (0.63 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

    import org.apache.maven.model.building.ModelProblem;
    import org.apache.maven.model.building.ModelSource2;
    import org.apache.maven.project.DefaultProjectBuildingRequest;
    import org.apache.maven.project.ProjectBuildingException;
    import org.apache.maven.project.ProjectBuildingRequest;
    import org.apache.maven.project.ProjectBuildingResult;
    
    @Named
    @Singleton
    public class DefaultProjectBuilder implements ProjectBuilder {
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Sep 13 09:44:11 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/project/ProjectBuildingResult.java

        File getPomFile();
    
        /**
         * Gets the project that was built.
         *
         * @return The project that was built or {@code null} if an error occurred and this result accompanies a
         *         {@link ProjectBuildingException}.
         */
        MavenProject getProject();
    
        /**
         * Gets the problems that were encountered during the project building.
         *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 10:13:56 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

    import org.apache.maven.project.DefaultProjectBuildingRequest;
    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.properties.internal.EnvironmentUtils;
    import org.apache.maven.properties.internal.SystemProperties;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Sep 25 12:03:50 UTC 2025
    - 30.4K bytes
    - Viewed (0)
Back to top