Interface Parser<R extends InvokerRequest<? extends Options>>

Type Parameters:
R - the type of InvokerRequest produced by this parser, extending InvokerRequest
All Known Subinterfaces:
EncryptParser, ForkedMavenParser, MavenParser<R>
All Known Implementing Classes:
BaseMavenParser, BaseParser, DefaultEncryptParser, DefaultForkedMavenParser, DefaultMavenParser

@Experimental public interface Parser<R extends InvokerRequest<? extends Options>>
Defines the contract for parsing Maven command-line arguments and creating an InvokerRequest. This interface is responsible for interpreting the command-line input and constructing the appropriate InvokerRequest object.
Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default R
    mvn(String[] args, Logger logger, MessageBuilderFactory messageBuilderFactory)
    Parses the given Maven arguments to create an InvokerRequest.
    parse(ParserRequest parserRequest)
    Parses the given ParserRequest to create an InvokerRequest.