- All Implemented Interfaces:
Helps to provide backward-compatibility with plugins that use legacy components. Warning: This is an internal utility component that is only public for technical reasons, it is not part of the public API. In particular, this component can be changed or deleted without prior notice.
- Benjamin Bentmann
setSessionpublic void setSession
(MavenSession session)Sets the currently active session. Some legacy components are basically stateful and their API is missing parameters that would be required to delegate to a stateless component. Saving the session (in a thread-local variable) is our best effort to record any state that is required to enable proper delegation.
getSessionpublic MavenSession getSession()Gets the currently active session.
getRepositorySessionpublic org.eclipse.aether.RepositorySystemSession getRepositorySession()Gets the currently active repository session.