Package org.apache.maven.api.cli
Interface Parser
- All Known Implementing Classes:
BaseParser
,EncryptParser
,MavenParser
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
@Nonnull InvokerRequest parseInvocation(@Nonnull ParserRequest parserRequest) throws ParserException, IOException 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
- Throws:
ParserException
- if there's an error during parsing of the requestIOException
- if there's an I/O error during the parsing process
-