Hi all,

I want to inject the current project in my plugin.
This works well when running my unit tests, but not after installation via "forge source-plugin" or "forge git-plugin".

This problem seems to come from a different classloader for the "javax.inject.Inject" class.
At line 221 in org.jboss.weld.util.Bean:          for (WeldField<?, ?> annotatedField : t.getDeclaredWeldFields(Inject.class))
We have Inject class with a different classloader of the key used in the map.

My code can be found here : https://github.com/jerr/forge-eclipse-plugins

The modules installed into the $${home}/.forge directory seem loaded beings in a different classloader.

Do you have a good practice for this?
Thank you for your help.


Jeremie.