I found a blog post from a while back that mentions the following: "There is a generate-sources phase in the build process, where you can register any goals that do so, and plug the new directories into the project for compilation automatically."
I have managed to register the antrun:run goal with the generate-sources phase, with code being generated to a location off the main build directory, but how do I get this location "plugged" into the project so its used for compilation? I'm thinking the only way to do this is to write a java based plugin that programmatically plugs in the new directory. Thanks Rob -----Original Message----- From: Robert Biernat [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 1:53 AM To: [email protected] Subject: m2 compiler plugin and generated source Hi, Can I change the configuration of the compiler plugin so along with the default source path i.e src/main/java I can point it to a location that contains generated source i.e target/src/gen I have modified one of my poms, so the generate-sources lifecycle stage has been wired up to the antrun plugin, which invokes an existing ant script that generates code withb the generated output being placed into the following location: ${project.build.directory}/src Thanks Rob
