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

What is recommended way to implement proper session nesting? I see no
way to nest session data, for example. At least not without having
controls of the outer session creation, which I don't have.

--
Regards,
Igor

On 2014-10-09, 9:49, Benjamin Bentmann wrote:
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

_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/aether-users


Back to the top