- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for orElseThrow (0.05 sec)
-
impl/maven-core/src/test/java/org/apache/maven/project/ResourceIncludeTest.java
// Find the resource with the custom directory Resource customResource = resources.stream() .filter(r -> r.getDirectory().endsWith("custom")) .findFirst() .orElseThrow(() -> new AssertionError("Custom resource not found")); // Verify targetPath was preserved through conversion chain assertEquals(Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Nov 07 13:11:07 UTC 2025 - 12.6K bytes - Viewed (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/InvokerRequest.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 6.7K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ExtensibleEnumRegistry.java
public interface ExtensibleEnumRegistry<T extends ExtensibleEnum> extends Service { @Nonnull Optional<T> lookup(@Nonnull String id); @Nonnull default T require(@Nonnull String id) { return lookup(id).orElseThrow(() -> new IllegalArgumentException("Unknown extensible enum value '" + id + "'")); }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Apr 03 13:33:59 UTC 2025 - 1.8K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/TypeRegistry.java
* * @param id the id of the type to retrieve * @return the type */ @Nonnull @Override default Type require(@Nonnull String id) { return lookup(id).orElseThrow(() -> new IllegalArgumentException("Unknown extensible enum value '" + id + "'")); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Apr 03 13:33:59 UTC 2025 - 1.7K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java
.filter(project -> projectSelector.isMatchingProject(project, selector, reactorDirectory)) .findFirst() .orElseThrow(() -> new MavenExecutionException( "Could not find project to resume reactor build from: " + selector + " vs " + formatProjects(projects),
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Feb 11 16:38:19 UTC 2025 - 18.5K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java
.build()); Assertions.assertTrue(invokerRequest.options().isPresent()); Options options = invokerRequest.options().orElseThrow(); Assertions.assertFalse(options.showVersion().orElse(false)); Assertions.assertFalse(options.showVersionAndExit().orElse(false)); Assertions.assertTrue(options.showErrors().orElse(false));
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 4.2K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenParser.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Oct 14 12:35:44 UTC 2025 - 4.4K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CliUtils.java
return getCanonicalPath(Optional.ofNullable( ServiceLoader.load(RootLocator.class).iterator().next().findMandatoryRoot(topDirectory)) .orElseThrow()); }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Oct 13 18:30:29 UTC 2025 - 5K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java
} private Lifecycle getLifeCycleById(String id) { return defaultLifeCycles.getLifeCycles().stream() .filter(l -> id.equals(l.getId())) .findFirst() .orElseThrow(IllegalArgumentException::new); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 3.9K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/PrecedenceCoreExtensionSelector.java
if (coreExtensions.isEmpty() || coreExtensions.get().isEmpty()) { return List.of(); } return selectCoreExtensions( context, context.invokerRequest.coreExtensions().orElseThrow()); } /** * Selects extensions to load discovered from various sources by precedence ("first wins"), as * {@link InvokerRequest#coreExtensions()} is in precedence order. Also reports conflicts, if any.
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Sep 29 15:32:43 UTC 2025 - 4.6K bytes - Viewed (0)