Class ResidentMavenInvoker
java.lang.Object
org.apache.maven.cling.invoker.LookupInvoker<C>
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()Closes and disposes of thisInvokerinstance, releasing any resources it may hold.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
customizeSettingsRequest, customizeSettingsResult, determineExecutionListener, determineGlobalChecksumPolicy, determineMakeBehavior, determinePom, determineReactorFailureBehaviour, determineTransferListener, doExecute, execute, getResumeFromSelector, init, logBuildResumeHint, logSummary, performProfileActivation, performProjectActivation, populateRequest, postCommands, prepareMavenExecutionRequest, toolchainsMethods inherited from class org.apache.maven.cling.invoker.LookupInvoker
activateLogging, calculateDegreeOfConcurrency, configureLogging, createContainerCapsuleFactory, createTerminal, describe, determineBuildEventListener, determineWriter, doConfigureWithTerminal, doDetermineBuildEventListener, doDetermineWriter, doInvoke, handleException, helpOrVersionAndMayExit, invoke, isRunningOnCI, localRepositoryPath, mayDisableInteractiveMode, populateRequestFromSettings, postContainer, preCommands, prepare, pushCoreProperties, pushUserProperties, settings, settings, showVersion, validate
-
Constructor Details
-
ResidentMavenInvoker
-
-
Method Details
-
close
Description copied from interface:InvokerCloses and disposes of thisInvokerinstance, releasing any resources it may hold. This method is called automatically when using try-with-resources statements.The default implementation does nothing. Subclasses should override this method if they need to perform cleanup operations.
- Throws:
InvokerException- if an error occurs while closing theInvoker
-
createContext
- Specified by:
createContextin classLookupInvoker<ResidentMavenContext>
-
getContextId
-
container
- Overrides:
containerin classLookupInvoker<ResidentMavenContext>- Throws:
Exception
-
lookup
- Overrides:
lookupin classMavenInvoker<ResidentMavenContext>- Throws:
Exception
-