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()
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
- Throws:
InvokerException
-
createContext
- Specified by:
createContext
in classLookupInvoker<ResidentMavenContext>
-
getContextId
-
container
- Overrides:
container
in classLookupInvoker<ResidentMavenContext>
- Throws:
Exception
-
lookup
- Overrides:
lookup
in classMavenInvoker<ResidentMavenContext>
- Throws:
Exception
-