I have a Java web project that is built using Maven. The project has some annotated classes to generate some sources at build time using a template (velocity). Everything works well so far, I'm using the generated sources flawless.
Right now I need to use those generated classes in a different project. I'm wondering how can I tell maven to package those sources in an additional jar. I would like to use that generated jar in both my main project and the new one as a new dependency.
Any Ideas?
Thanks!