sonatype/nexus — pull request #171 by cstamas (2012-01-03 12:46:17+00:00)
Title: NEXUS-4735 as initial reason, but many IT fixes

The inital problem (log file kept open on windows making it impossible to delete) led me to believe there was a component in IT plexus container that kept the file open.

This led to realization that we "bounce" Plexus per-IT class, and this is not the case anymore. Plexus is brought up once (lazily) and kept the same instance over and over. Moreover, how security was managed in ITs was next to a disaster, and it turned out that many ITs did "interleave" (was relying on side effect!).

After fixing plexus and security, next was to remove the "feature" of ITs that it was bringin' up almost all of Nexus internals within IT (to "validate" configuration [why?], to mangle security configuration [why?] and many more). So, alternative implementations are added that does NOT bring up all of those components, except in few (2 i believe) ITs where they are a must to decipher some of the SMTP related passwords that would come in scrambled if using "low level" model loaded only.

Finally, it turned out that a few ITs (within same group) was responsible for more than 20minutes of runtime, and they were even not doing their job: they were silently timeouting (auto block related ITs).