I've been working on this all day and can't seem to find a solution to fit my requirements.
- Addition to compile life cycle that generates code. (I thought a MOJO would work here)
- MOJO depends on compiled code to generate 'new' parts.
- MOJO is only ever going to be required for this maven project.
- I cannot alter the definitions of the existing maven project which is a fully compliant maven infrastructure and packaging of jar. (So I cannot create the MOJO as a module of this)
Is there any way I can create this step as part of the maven lifecycle?
I've tried a dozen different routes and they either cause issues as I try to declare the dependency as it self and goes into an infinite loop, or if I make the MOJO as a child of the project (part of the src), I have no way to automatically compile the MOJO's project during the compilation of the main maven project.