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_LINE
Fields inherited from class org.apache.maven.cling.invoker.LookupInvoker
protoLookup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes and disposes of thisInvoker
instance, releasing any resources it may hold.protected void
container
(ResidentMavenContext context) protected ResidentMavenContext
createContext
(InvokerRequest invokerRequest) protected String
getContextId
(InvokerRequest invokerRequest) protected void
lookup
(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, toolchains
Methods 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:Invoker
Closes and disposes of thisInvoker
instance, 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:
createContext
in classLookupInvoker<ResidentMavenContext>
-
getContextId
-
container
- Overrides:
container
in classLookupInvoker<ResidentMavenContext>
- Throws:
Exception
-
lookup
- Overrides:
lookup
in classMavenInvoker<ResidentMavenContext>
- Throws:
Exception
-