Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 471 - 480 of 1,002 for exception (0.04 seconds)

  1. impl/maven-core/src/test/java/org/apache/maven/internal/impl/TestApi.java

    import org.apache.maven.bridge.MavenRepositorySystem;
    import org.apache.maven.execution.DefaultMavenExecutionRequest;
    import org.apache.maven.execution.DefaultMavenExecutionResult;
    import org.apache.maven.execution.MavenSession;
    import org.apache.maven.execution.scope.internal.MojoExecutionScope;
    import org.apache.maven.impl.DefaultToolchainManager;
    import org.apache.maven.impl.InternalSession;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/toolchain/ToolchainManagerFactory.java

                if (v4Factory == null) {
                    return null;
                }
                return createV3FactoryBridgeForV4Factory(v4Factory);
            } catch (Exception e) {
                // If lookup fails, no v4 factory exists for this type
                return null;
            }
        }
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 31 10:58:52 GMT 2025
    - 11K bytes
    - Click Count (0)
  3. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleExecutionPlanCalculatorStub.java

    import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException;
    import org.apache.maven.plugin.version.PluginVersionResolutionException;
    import org.apache.maven.project.MavenProject;
    import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
    
    /**
     */
    public class LifecycleExecutionPlanCalculatorStub implements LifecycleExecutionPlanCalculator {
        // clean
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginDependenciesResolver.java

            } catch (DependencyCollectionException e) {
                throw new PluginResolutionException(plugin, e.getResult().getExceptions(), e);
            } catch (DependencyResolutionException e) {
                List<Exception> exceptions = Stream.concat(
                                e.getResult().getCollectExceptions().stream(),
                                e.getResult().getArtifactResults().stream()
    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)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeStrategy.java

            try {
                UpgradeResult result = doApply(context, pomMap);
    
                // Log summary
                logSummary(context, result);
    
                return result;
            } catch (Exception e) {
                context.failure("Strategy execution failed: " + e.getMessage());
                return UpgradeResult.failure(pomMap.keySet(), Set.of());
            } finally {
                context.unindent();
            }
        }
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                try {
                    remoteRepositories = projectBuildingHelper.createArtifactRepositories(
                            project.getModel().getRepositories(), remoteRepositories, request);
                } catch (Exception e) {
                    result.getProblemCollector()
                            .reportProblem(new org.apache.maven.impl.model.DefaultModelProblem(
                                    "",
    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)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

        }
    
        private boolean isMissingPom(Exception e) {
            if (e.getCause() instanceof MultipleArtifactsNotFoundException) {
                return true;
            }
            return e.getCause() instanceof org.eclipse.aether.resolution.ArtifactResolutionException
                    && e.getCause().getCause() instanceof ArtifactNotFoundException;
        }
    
        private boolean isNonTransferablePom(Exception e) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 25 12:03:50 GMT 2025
    - 30.4K bytes
    - Click Count (0)
  8. docs/en/docs/advanced/middleware.md

    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    But FastAPI (actually Starlette) provides a simpler way to do it that makes sure that the internal middlewares handle server errors and custom exception handlers work properly.
    
    For that, you use `app.add_middleware()` (as in the example for CORS).
    
    ```Python
    from fastapi import FastAPI
    from unicorn import UnicornMiddleware
    
    app = FastAPI()
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t02/ProjectInheritanceTest.java

        // ----------------------------------------------------------------------
    
        @Test
        @DisabledOnOs(value = WINDOWS, disabledReason = "need to investigate why it fails on windows")
        void testProjectInheritance() throws Exception {
            File localRepo = getLocalRepositoryPath();
    
            System.out.println("Local repository is at: " + localRepo.getAbsolutePath());
    
            File pom0 = new File(localRepo, "p0/pom.xml");
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jun 04 10:35:11 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategy.java

                        }
                    } else {
                        context.success("No inference optimizations needed");
                    }
                } catch (Exception e) {
                    context.failure("Failed to apply inference optimizations" + ": " + e.getMessage());
                    errorPoms.add(pomPath);
                } finally {
                    context.unindent();
                }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 27.6K bytes
    - Click Count (0)
Back to Top