- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 237 for problems (0.09 seconds)
-
impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuildingExceptionTest.java
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)"), "Message should contain problem count and error count");
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat Jul 26 19:15:57 GMT 2025 - 6.7K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java
* * @param severity the severity level to get problems for * @return a stream of problems with the specified severity */ @Nonnull Stream<P> problems(BuilderProblem.Severity severity); /** * Creates an "empty" problem collector that doesn't store any problems. * * @param <P> the type of problem * @return an empty problem collector */ @NonnullCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jul 18 17:30:19 GMT 2025 - 11.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/MavenBuilderException.java
* @param problems the collection of problems to include in the message * @return a formatted message including details of all problems */ protected static String buildMessage(String message, ProblemCollector<BuilderProblem> problems) { StringBuilder msg = new StringBuilder(message); problems.problems().forEach(problem -> msg.append("\n * ") .append(problem.getSeverity().name())Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Apr 03 13:33:59 GMT 2025 - 3.2K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Result.java
*/ public static <T> Result<T> newResult(T model, Iterable<? extends ModelProblem> problems) { return new Result<>(hasErrors(problems), model, problems); } /** * New result consisting of given result and new problem. Convenience for newResult(result.get(), * concat(result.getProblems(),problems)). * * @param result * @param problem */Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Mar 26 19:31:34 GMT 2025 - 6.9K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingException.java
return null; } static String toMessage(String modelId, List<ModelProblem> problems) { StringWriter buffer = new StringWriter(1024); PrintWriter writer = new PrintWriter(buffer); writer.print(problems.size()); writer.print((problems.size() == 1) ? " problem was " : " problems were "); writer.print("encountered while building the effective model");Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 5.4K bytes - Click Count (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsBuilder.java
} if (hasErrors(problems.getProblems())) { throw new SettingsBuildingException(problems.getProblems()); } return new DefaultSettingsBuildingResult(userSettings, problems.getProblems()); } private boolean hasErrors(List<SettingsProblem> problems) { if (problems != null) { for (SettingsProblem problem : problems) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 9.5K bytes - Click Count (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/ProblemCollectorFactoryTest.java
collector.add(Problem.Severity.ERROR, "Error message", 10, 5, null); collector.add(Problem.Severity.WARNING, "Warning message", 15, 3, null); List<Problem> problems = collector.getProblems(); assertEquals(2, problems.size(), "Should collect both problems"); assertEquals(Problem.Severity.ERROR, problems.get(0).getSeverity(), "First problem should be ERROR");
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Jul 20 20:19:43 GMT 2025 - 2.3K bytes - Click Count (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/validation/DefaultSettingsValidator.java
validateStringNotEmpty(problems, "mirrors.mirror.id", mirror.getId(), mirror.getUrl()); validateBannedCharacters( problems, "mirrors.mirror.id", Severity.WARNING, mirror.getId(), null, ILLEGAL_REPO_ID_CHARS); if ("local".equals(mirror.getId())) { addViolation( problems, Severity.WARNING,
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 10.6K bytes - Click Count (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/SettingsBuildingException.java
private final List<SettingsProblem> problems; /** * Creates a new exception with the specified problems. * * @param problems The problems that cause this exception, may be {@code null}. */ public SettingsBuildingException(List<SettingsProblem> problems) { super(toMessage(problems)); this.problems = new ArrayList<>(); if (problems != null) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 2.9K bytes - Click Count (0) -
compat/maven-settings-builder/src/test/java/org/apache/maven/settings/validation/DefaultSettingsValidatorTest.java
repo.setUrl("http://xxx.xxx.com"); problems = new SimpleProblemCollector(); validator.validate(model, problems); assertEquals(1, problems.messages.size()); repo.setId("xxx"); problems = new SimpleProblemCollector(); validator.validate(model, problems); assertEquals(0, problems.messages.size()); } @Test void testValidateMirror() throws Exception {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 8.5K bytes - Click Count (0)