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 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_LINE
Fields inherited from class org.apache.maven.cling.invoker.LookupInvoker
protoLookup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
protected DefaultResidentMavenInvoker.LocalContext
createContext
(MavenInvokerRequest<MavenOptions> invokerRequest) protected String
getContextId
(MavenInvokerRequest<MavenOptions> invokerRequest) protected void
Methods 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, toolchains
Methods 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, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.api.cli.mvn.MavenInvoker
invoke
-
Constructor Details
-
DefaultResidentMavenInvoker
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceInvoker<MavenInvokerRequest<MavenOptions>>
- Specified by:
close
in interfaceResidentMavenInvoker
- Throws:
InvokerException
-
createContext
protected DefaultResidentMavenInvoker.LocalContext createContext(MavenInvokerRequest<MavenOptions> invokerRequest) - Specified by:
createContext
in classLookupInvoker<MavenOptions,
MavenInvokerRequest<MavenOptions>, DefaultResidentMavenInvoker.LocalContext>
-
getContextId
-
container
- Overrides:
container
in classLookupInvoker<MavenOptions,
MavenInvokerRequest<MavenOptions>, DefaultResidentMavenInvoker.LocalContext> - Throws:
Exception
-
lookup
- Overrides:
lookup
in classDefaultMavenInvoker<MavenOptions,
MavenInvokerRequest<MavenOptions>, DefaultResidentMavenInvoker.LocalContext> - Throws:
Exception
-