mvn CLI reference
ModularPipelines.Java provides strongly typed access to the mvn CLI.
Executable prerequisite
This package does not install the mvn executable. Install it separately and ensure mvn is available on PATH.
Follow the executable's official documentation for installation instructions.
Package installation
dotnet add package ModularPipelines.Java
Resolve the service with context.Tools.Maven. For projects older than C# 14, import ModularPipelines.Java.Extensions and use the context.Maven() extension method as a compatibility fallback.
Module example
Resolve the service in a module, then select a command from the table below. A runnable example is omitted when no command has complete safety metadata:
var maven = context.Tools.Maven;
Commands
| CLI command | Options record |
|---|---|
mvn | MavenExecuteOptions |