sdedic commented on PR #6552: URL: https://github.com/apache/netbeans/pull/6552#issuecomment-1757456029
Hm. So not only unconfigured session. Maven's `DefaultLegacySupport` contains a thread-local variable that holds the current `RepositorySession` (through MavenSession). If the "offline" execution happened to be planned on a thread that formerly used "online" embedder, the online session remained in the thread local - and was used instead. The new commit in this patch replaces the current value with the appropriate one, configured for the executing Embedder; this does not affect other threads (if they use also Maven libraries), as it is replaced in a thread-local variable. Please test from this PR's branch. There's a Maven patch attached, against `maven-3.9.5` tag. As a convenience, I've attached built binaries - to be replaced in `java/maven/lib`. All that is zipped into the attachment. [maven-patches.zip](https://github.com/apache/netbeans/files/12868734/maven-patches.zip) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
