Relative Content

Tag Archive for plugins

Designing a plug-in system

I’m working on a Java project and I would like to add a plug-in system. More precisely, I would like to let the user design his own module, pack it into a jar, leave it in a “plugins/” subfolder of my application and be done with it. I’ve managed to get a child classloader to instantiate objects of classes located in external jars, but now I’m facing a design dilemma:

Custom maven mojo and tools

I’m writing maven plugin which depends on several java tools. I’m quite happy with it and want to share it with the community. I’m interested in correct way to handle dependency to these tools: