<div dir="ltr">The only place where Forge directly interacts with plexus is here:<div><br><div><a href="https://github.com/forge/core/blob/master/maven/impl-projects/src/main/java/org/jboss/forge/addon/maven/projects/PlexusContainer.java#L26">https://github.com/forge/core/blob/master/maven/impl-projects/src/main/java/org/jboss/forge/addon/maven/projects/PlexusContainer.java#L26</a></div>
<div><br></div><div>As you can see, we make sure to always restore the TCCL after invoking it (using <a href="https://github.com/forge/furnace/blob/master/container-api/src/main/java/org/jboss/forge/furnace/util/ClassLoaders.java#L21">https://github.com/forge/furnace/blob/master/container-api/src/main/java/org/jboss/forge/furnace/util/ClassLoaders.java#L21</a>), because Plexus is... well... nasty and does nasty things. There was one place where we did not do this, but don&#39;t think it&#39;s the source of the error described above... however, just for paranoia&#39;s sake, I&#39;ve added this TCCL protection in the shutdown method as well:</div>
<div><br><div><a href="https://github.com/forge/core/commit/37970feeb">https://github.com/forge/core/commit/37970feeb</a><br></div></div><div><br></div><div>~Lincoln</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jul 2, 2014 at 6:01 PM, Nick Boldt <span dir="ltr">&lt;<a href="mailto:nboldt@redhat.com" target="_blank">nboldt@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Escalating to SHOUTY CAPS in subject (so mail filters won&#39;t) and adding PM folks to cc: so this gets to the agenda, in case it is in fact a Beta3 blocker.<br>
<br>
As Koen is on PTO the next couple days, adding Lincoln instead. Apologies if someone else ought to be cc:&#39;d instead.<br>
<br>
N<br>
<br>
On 07/02/2014 03:25 PM, Rob Stryker wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey all:<br>
<br>
A user found a strange bug while using astools and publishing a zipped<br>
project. The bug is basically that truezip ( a library we use) can&#39;t<br>
initialize because it can&#39;t find a class. It can&#39;t find the class<br>
because the thread&#39;s classloader is from plexus classrealms, and not the<br>
standard eclipse classloader that we&#39;d expect.<br>
<br>
So basically, either forge or m2e is changing a worker&#39;s classloader,<br>
and not putting it back. This (if true) could be a critical issue, since<br>
that thread / worker will probably never have the proper classloader<br>
again for the workspace session.<br>
<br>
I encourage anyone with access to m2e or forge to look into this and<br>
verify their respective codebases are behaving properly with regards to<br>
classloaders. Feel free to look at the jira and ask any for more details<br>
or any questions you might have that might help in tracking this down.<br>
<br>
<a href="https://issues.jboss.org/browse/JBIDE-17700" target="_blank">https://issues.jboss.org/<u></u>browse/JBIDE-17700</a><br>
______________________________<u></u>_________________<br>
jbosstools-dev mailing list<br>
<a href="mailto:jbosstools-dev@lists.jboss.org" target="_blank">jbosstools-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/jbosstools-<u></u>dev</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Nick Boldt :: JBoss by Red Hat<br>
Productization Lead :: JBoss Tools &amp; Dev Studio<br>
<a href="http://nick.divbyzero.com" target="_blank">http://nick.divbyzero.com</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>&quot;Simpler is better.&quot;
</div>