Hi, I'm trying to understand best practice for testing a plugin [1]. The plugin is aimed at exercising a tool that generates java source from XML schema. It is bound to the generate-sources phase. I have inherited this plugin, so I'm at novice level in developing maven plugins. I want to do a better job of testing the source generator, but I can't use the plugin from the generator's maven project because that introduces circular dependencies between the generator and the plugin projects. I'd like to be able to generate the source and then execute test code against that source.
Is there provision in the maven infrastructure to test a plugin within the a test phase of the plugin's own project build process? My first thought to address the issue is to add a new project with dependencies on both the plugin and the generator project, but I wondered if you could help me find out what is best practice, and perhaps let me know if such practice is encapsulated in a maven archetype project for this scenario. Regards, Kelvin. [1] https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo/plugin/pom.xml