Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for errorPoms (0.46 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeResult.java

     * @param errorPoms the set of POMs that had errors
     */
    public record UpgradeResult(Set<Path> processedPoms, Set<Path> modifiedPoms, Set<Path> errorPoms) {
    
        public UpgradeResult {
            // Defensive copying to ensure immutability
            processedPoms = Set.copyOf(processedPoms);
            modifiedPoms = Set.copyOf(modifiedPoms);
            errorPoms = Set.copyOf(errorPoms);
        }
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java

                assertFalse(result.success(), "Orchestrator should fail when any strategy fails");
                assertEquals(1, result.errorPoms().size(), "Should have one error POM");
                assertTrue(result.errorPoms().contains(Paths.get("pom.xml")), "Should contain the failed POM");
            }
    
            @Test
            @DisplayName("should handle strategy exceptions gracefully")
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestrator.java

            if (!result.errorPoms().isEmpty()) {
                context.failure("Strategy completed with errors");
                context.indent();
                context.info("Processed: " + result.processedPoms().size() + " POMs");
                context.info("Modified: " + result.modifiedPoms().size() + " POMs");
                context.failure("Errors: " + result.errorPoms().size() + " POMs");
                context.unindent();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategy.java

                        errorPoms.add(pomPath);
                    }
                } catch (Exception e) {
                    context.failure("Model upgrade failed: " + e.getMessage());
                    errorPoms.add(pomPath);
                } finally {
                    context.unindent();
                }
            }
    
            return new UpgradeResult(processedPoms, modifiedPoms, errorPoms);
        }
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  5. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeResultTest.java

                assertEquals(1, merged.modifiedPoms().size(), "Should only include successfully modified POMs");
                assertEquals(1, merged.errorPoms().size(), "Should include error POMs");
                assertTrue(merged.errorPoms().contains(pom2), "Should contain failed POM");
            }
    
            @Test
            @DisplayName("should handle merging with different POM sets")
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java

                context.failure("Failed to create temp project structure: " + e.getMessage());
                // Mark all POMs as errors
                errorPoms.addAll(pomMap.keySet());
            }
    
            return new UpgradeResult(processedPoms, modifiedPoms, errorPoms);
        }
    
        /**
         * Upgrades plugins in the document.
         * Checks both build/plugins and build/pluginManagement/plugins sections.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 37K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java

                    context.failure("Failed to fix Maven 4 compatibility issues" + ": " + e.getMessage());
                    errorPoms.add(pomPath);
                } finally {
                    context.unindent();
                }
            }
    
            return new UpgradeResult(processedPoms, modifiedPoms, errorPoms);
        }
    
        /**
         * Fixes unsupported combine.children attribute values.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 22.2K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategy.java

                    context.failure("Failed to apply inference optimizations" + ": " + e.getMessage());
                    errorPoms.add(pomPath);
                } finally {
                    context.unindent();
                }
            }
    
            return new UpgradeResult(processedPoms, modifiedPoms, errorPoms);
        }
    
        /**
         * Applies limited parent-related inference optimizations for Maven 4.0.0+ models.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java

                // This is needed for both 4.0.0 and 4.1.0 to help Maven find the project root
                createMvnDirectoryIfNeeded(context);
    
                return result.errorPoms().isEmpty() ? 0 : 1;
            } catch (Exception e) {
                context.failure("Strategy execution failed: " + e.getMessage());
                return 1;
            }
        }
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top