- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 51 for infer (1.25 sec)
-
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/TestUtils.java
} /** * Creates upgrade options with only the --infer option set. * * @param infer the --infer option value * @return configured upgrade options */ public static UpgradeOptions createOptionsWithInfer(boolean infer) { return createOptions(null, infer, null, null, null); } /** * Creates a simple POM XML string for testing.Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 8.9K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/CommonsCliUpgradeOptions.java
return Optional.of(commandLine.getOptionValue(CLIManager.DIRECTORY)); } return Optional.empty(); } @Override @Nonnull public Optional<Boolean> infer() { if (commandLine.hasOption(CLIManager.INFER)) { return Optional.of(Boolean.TRUE); } return Optional.empty(); } @Override @Nonnull public Optional<Boolean> model() {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Sep 29 14:48:39 UTC 2025 - 7K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/PluginUpgradeCliTest.java
CommonsCliUpgradeOptions options = CommonsCliUpgradeOptions.parse(args); assertTrue(options.modelVersion().isPresent(), "--model-version option should be present"); assertEquals("4.1.0", options.modelVersion().get(), "--model-version should be 4.1.0"); assertTrue(options.infer().isPresent(), "--infer option should be present");
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Sep 29 14:48:39 UTC 2025 - 9.9K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategy.java
if (useAll) { return true; } // Check if --infer is explicitly set if (options.infer().isPresent()) { return options.infer().get(); } // Apply default behavior: if no specific options are provided, enable --infer if (options.infer().isEmpty() && options.model().isEmpty() && options.plugins().isEmpty()
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 27.6K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategyTest.java
@DisplayName("Applicability") class ApplicabilityTests { @Test @DisplayName("should be applicable when --infer option is true") void shouldBeApplicableWhenInferOptionTrue() { UpgradeOptions options = mock(UpgradeOptions.class); when(options.infer()).thenReturn(Optional.of(true)); when(options.all()).thenReturn(Optional.empty());Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 35.2K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/package-info.java
* mvnup check * }</pre> * * <h3>Apply All Upgrades</h3> * <pre>{@code * mvnup apply --all * }</pre> * * <h3>Upgrade to Maven 4.1.0 with Inference</h3> * <pre>{@code * mvnup apply --model 4.1.0 --infer * }</pre> * * <h2>Extension Points</h2> * * <p>To add new upgrade strategies:</p> * <ol> * <li>Implement {@link org.apache.maven.cling.invoker.mvnup.goals.UpgradeStrategy}</li>
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 3.3K bytes - Viewed (0) -
apache-maven/src/main/appended-resources/META-INF/LICENSE.vm
#* *##set ( $groupId = $project.artifact.groupId ) #* *##set ( $directory = 'lib' ) #* *##if ( !$apacheMavenGroupIds.contains( $groupId ) ) #* *### advertise about each non-Maven dependency #* *### #* *### infer SPDX license id #* *##if ( $MITLicenseNames.contains( $license.name ) ) #* *##set ( $spdx = 'MIT' ) #* *##elseif ( $license.name == "Eclipse Public License, Version 1.0" ) #* *##set ( $spdx = 'EPL-1.0' )
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 4.3K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeStrategy.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 3.4K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java
* * <h3>All-in-One Option</h3> * The {@code --all} option is a convenience flag equivalent to {@code --model 4.1.0 --infer --fix-model --plugins}. * It performs a complete upgrade to Maven 4.1.0 with all optimizations, compatibility fixes, and plugin upgrades. * * <h3>Maven 4 Compatibility Fixes</h3>
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 12.5K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java
boolean noOptionsSpecified = options.all().isEmpty() && options.infer().isEmpty() && options.model().isEmpty() && options.plugins().isEmpty() && options.modelVersion().isEmpty(); boolean allOptionsDisabled = options.all().map(v -> !v).orElse(false) && options.infer().map(v -> !v).orElse(false) && options.model().map(v -> !v).orElse(false)
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 22.2K bytes - Viewed (0)