Hi all,<div><br></div><div><div>I want to inject the current project in my plugin.</div><div>This works well when running my unit tests, but not after installation via "forge source-plugin" or "forge git-plugin".</div>
</div><div><br></div><div>This problem seems to come from a different classloader for the "javax.inject.Inject" class.</div><div>At line 221 in org.jboss.weld.util.Bean: for (WeldField<?, ?> annotatedField : t.getDeclaredWeldFields(Inject.class))</div>
<div>We have Inject class with a different classloader of the key used in the map.</div><div><br></div><div>My code can be found here : <a href="https://github.com/jerr/forge-eclipse-plugins">https://github.com/jerr/forge-eclipse-plugins</a></div>
<div><br></div><div>The modules installed into the $${home}/.forge directory seem loaded beings in a different classloader.</div><div><br></div><div>Do you have a good practice for this?</div><div>Thank you for your help.</div>
<div><br></div><div><br></div><div>Jeremie.</div>