Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aether-users] Why does DefaultArtifactResolver.resolveArtifacts aquire an exclusive SyncContext in offline sessions?

Hi,

maybe I am misunderstanding how SyncContext and SyncContextFactory are
supposed to be used, but I am wondering why
DefaultArtifactResolver.resolveArtifacts always acquires an exclusive
SyncContext. If the RepositorySystemSession is offline, this seems
unnecessary to me, as no files in the local repository will be written to.

Using an exclusive SyncContext prevents simultaneous offline resolution
of the same artifact. Admittedly, resolution in offline mode is fast,
but still this seems like an unnecessary bottleneck.

Best wishes,

Andreas

-- 
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top