You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Soltysik, Seumas" <Se...@iona.com> on 2008/06/24 18:24:56 UTC
Using Class.forName() in plugin
I am developing a code-generator plugin that I would like to be dynamic
enough to accept a classname through configuration and then use
Class.forName() to instantiate that class and using it as part of the
generator. The problem is that this class is not part of the plugin's
dependency list, so I get a ClassNotFoundException. Is there a way to
extend dynamically extend the dependencies of a plugin so that it can
pick up the class that I want to instantiate as part of the plugin?
Regards,
Seumas