Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] nested sessions configuration isolation

Igor Fedorenko wrote:

There are several places in Maven and m2e when we need to effectively
create nested aether repository session. Currently, some most session
customizations applied to the nested session are discarded, while others
seem to "leak" into the outer session. Session data and cache and two
examples of such a leak. Is this expected/desired behaviour or
should I report it as a bug?

This is expected behavior and the copy constructor's doc [0] tries to outline that. It's worth to keep in mind that mutating the session object itself and objects referenced by it (like the cache) are distinct concerns.


Benjamin


[0] http://download.eclipse.org/aether/aether-core/1.0.0/apidocs/org/eclipse/aether/DefaultRepositorySystemSession.html#DefaultRepositorySystemSession%28org.eclipse.aether.RepositorySystemSession%29


Back to the top