Package org.apache.maven.api.cli


package org.apache.maven.api.cli
Provides the API for Maven's command-line interface and tools.

This package contains interfaces and classes for:

  • Command-line argument parsing and processing
  • Maven tool invocation (mvn, mvnenc, mvnsh)
  • Core extensions configuration
  • Early-stage logging before the full Maven logging system is initialized

The main components are:

  • Invoker - Base interface for executing Maven tools
  • Parser - Processes command-line arguments into invoker requests
  • Options - Represents Maven configuration options
  • CoreExtensions - Manages Maven core extensions

Core extensions can be configured through .mvn/extensions.xml in the project base directory to enhance Maven's capabilities during build execution.

Since:
4.0.0