Package org.apache.maven.api.cli
Interface Parser
- All Known Implementing Classes:
BaseParser
,EncryptParser
,MavenParser
,ShellParser
Defines the contract for parsing Maven command-line arguments and creating an execution or invoker requests.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionparseInvocation
(ParserRequest parserRequest) Parses the given ParserRequest to create anInvokerRequest
.
-
Method Details
-
parseInvocation
Parses the given ParserRequest to create anInvokerRequest
. This method does interpret tool arguments.- Parameters:
parserRequest
- the request containing all necessary information for parsing- Returns:
- the parsed invoker request. Caller must start by checking
InvokerRequest.parsingFailed()
as if there are parser errors, this request may not be fully processed and should immediately be failed.
-