Class ResidentMavenInvoker
java.lang.Object
org.apache.maven.cling.invoker.LookupInvoker<ResidentMavenContext>
org.apache.maven.cling.invoker.mvn.MavenInvoker<ResidentMavenContext>
org.apache.maven.cling.invoker.mvn.resident.ResidentMavenInvoker
- All Implemented Interfaces:
AutoCloseable,Invoker
Resident invoker implementation, similar to "local", but keeps Maven instance resident. This implies, that
things like environment, system properties, extensions etc. are loaded only once. It is caller duty to ensure
that subsequent call is right for the resident instance (ie no env change or different extension needed).
-
Field Summary
Fields inherited from class org.apache.maven.cling.invoker.mvn.MavenInvoker
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()protected voidcontainer(ResidentMavenContext context) protected ResidentMavenContextcreateContext(InvokerRequest invokerRequest) protected StringgetContextId(InvokerRequest invokerRequest) protected voidlookup(ResidentMavenContext context) Methods inherited from class org.apache.maven.cling.invoker.mvn.MavenInvoker
configureLogging, customizeSettingsRequest, customizeSettingsResult, determineBuildEventListener, determineExecutionListener, determineGlobalChecksumPolicy, determineMakeBehavior, determinePom, determineReactorFailureBehaviour, determineTransferListener, doDetermineBuildEventListener, doExecute, execute, getResumeFromSelector, init, logBuildResumeHint, logSummary, performProfileActivation, performProjectActivation, populateRequest, postCommands, prepareMavenExecutionRequest, toolchainsMethods inherited from class org.apache.maven.cling.invoker.LookupInvoker
activateLogging, calculateDegreeOfConcurrency, createContainerCapsuleFactory, createTerminal, describe, determineWriter, doConfigureWithTerminal, doDetermineWriter, doInvoke, handleException, helpOrVersionAndMayExit, invoke, isRunningOnCI, localRepositoryPath, mayDisableInteractiveMode, populateRequestFromSettings, postContainer, preCommands, prepare, pushCoreProperties, pushUserProperties, settings, settings, showVersion, validate
-
Constructor Details
-
ResidentMavenInvoker
-
-
Method Details
-
close
- Throws:
InvokerException
-
createContext
- Specified by:
createContextin classLookupInvoker<ResidentMavenContext>
-
getContextId
-
container
- Overrides:
containerin classLookupInvoker<ResidentMavenContext>- Throws:
Exception
-
lookup
- Overrides:
lookupin classMavenInvoker<ResidentMavenContext>- Throws:
Exception
-