Class DefaultResidentMavenInvoker
java.lang.Object
org.apache.maven.cling.invoker.LookupInvoker<MavenOptions,MavenInvokerRequest<MavenOptions>,DefaultResidentMavenInvoker.LocalContext>
org.apache.maven.cling.invoker.mvn.DefaultMavenInvoker<MavenOptions,MavenInvokerRequest<MavenOptions>,DefaultResidentMavenInvoker.LocalContext>
org.apache.maven.cling.invoker.mvn.resident.DefaultResidentMavenInvoker
- All Implemented Interfaces:
AutoCloseable,Invoker<MavenInvokerRequest<MavenOptions>>,MavenInvoker<MavenInvokerRequest<MavenOptions>>,ResidentMavenInvoker
public class DefaultResidentMavenInvoker
extends DefaultMavenInvoker<MavenOptions,MavenInvokerRequest<MavenOptions>,DefaultResidentMavenInvoker.LocalContext>
implements ResidentMavenInvoker
Local invoker implementation, when Maven CLI is being run. System uses ClassWorld launcher, and class world
instance is passed in via "enhanced" main method. Hence, this class expects fully setup ClassWorld via constructor.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.maven.cling.invoker.mvn.DefaultMavenInvoker
DefaultMavenInvoker.MavenContext<O extends MavenOptions,R extends MavenInvokerRequest<O>, C extends DefaultMavenInvoker.MavenContext<O, R, C>> Nested classes/interfaces inherited from class org.apache.maven.cling.invoker.LookupInvoker
LookupInvoker.ExitException, LookupInvoker.LookupInvokerContext<O extends Options,R extends InvokerRequest<O>, C extends LookupInvoker.LookupInvokerContext<O, R, C>> -
Field Summary
Fields inherited from class org.apache.maven.cling.invoker.mvn.DefaultMavenInvoker
ANSI_RESET, LAST_ANSI_SEQUENCE, NEXT_LINEFields inherited from class org.apache.maven.cling.invoker.LookupInvoker
protoLookup -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes cleanly the daemon.protected voidprotected DefaultResidentMavenInvoker.LocalContextcreateContext(MavenInvokerRequest<MavenOptions> invokerRequest) protected StringgetContextId(MavenInvokerRequest<MavenOptions> invokerRequest) protected voidMethods inherited from class org.apache.maven.cling.invoker.mvn.DefaultMavenInvoker
customizeSettingsRequest, customizeSettingsResult, determineExecutionListener, determineGlobalChecksumPolicy, determineMakeBehavior, determinePom, determineReactorFailureBehaviour, determineTransferListener, doExecute, execute, getResumeFromSelector, init, logBuildResumeHint, logSummary, performProfileActivation, performProjectActivation, populateRequest, postCommands, prepare, toolchainsMethods inherited from class org.apache.maven.cling.invoker.LookupInvoker
activateLogging, calculateDegreeOfConcurrency, configureLogging, createContainerCapsuleFactory, createTerminal, determineBuildEventListener, doConfigureWithTerminal, doDetermineBuildEventListener, doInvoke, handleException, helpOrVersionAndMayExit, invoke, isRunningOnCI, localRepositoryPath, mayDisableInteractiveMode, populateRequestFromSettings, preCommands, pushProperties, settings, settings, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.cli.mvn.MavenInvoker
invoke
-
Constructor Details
-
DefaultResidentMavenInvoker
-
-
Method Details
-
close
Description copied from interface:ResidentMavenInvokerCloses cleanly the daemon.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceInvoker<MavenInvokerRequest<MavenOptions>>- Specified by:
closein interfaceResidentMavenInvoker- Throws:
InvokerException- if an error occurs while closing theInvoker
-
createContext
protected DefaultResidentMavenInvoker.LocalContext createContext(MavenInvokerRequest<MavenOptions> invokerRequest) - Specified by:
createContextin classLookupInvoker<MavenOptions,MavenInvokerRequest<MavenOptions>, DefaultResidentMavenInvoker.LocalContext>
-
getContextId
-
container
- Overrides:
containerin classLookupInvoker<MavenOptions,MavenInvokerRequest<MavenOptions>, DefaultResidentMavenInvoker.LocalContext> - Throws:
Exception
-
lookup
- Overrides:
lookupin classDefaultMavenInvoker<MavenOptions,MavenInvokerRequest<MavenOptions>, DefaultResidentMavenInvoker.LocalContext> - Throws:
Exception
-