In our project e have a special JAR. At compile time, any other module must not reference code from this JAR. But at run time we create instance - using reflection - a special class which is used as a factory to all other implementation in this JAR.
But: when running from IntlliJ the later does not add this JAR to classpath,becuase - i guess - it see that the executed 'main' method does not depend in any way on this JAR.
How can i solve it.