I'm honestly not sure what the best/right approach would be in this situation. Off the top of my head, I have no idea if Maven can even handle your requirements, at least not with a single execution. But I can tell you what I might try...
I would generate the java sources in the Maven test phase as you are currently doing. Then have another Maven pom in the same basedir and specify source location as ./target/generated (or where ever your new sources are being generated), and output location as ./target2/. Then use "mvn -f pom2.xml test" and Maven should pick up the new sources and basically treat it as a completely second project that lives within your primary project. Another perhaps more-Mavenized way of doing it would be generating the java sources, then jarring them up using the assembly plugin, attach the assembled jar to the build using the build-helper plugin, and install them along with your primary jar into your local repo. Then in another project with its own pom.xml file in another directory, utilize the dependency plugin to unpack those sources into ./src (very early in the lifecycle), and proceed as normal. But this means a few extra steps and is a bit of an indirect approach to achieve the same results. Tell us a bit more about your situation or give us a URL where we can download and play with your sources ourselves (if they're public) and perhaps someone can come up with a working approach to your problem. Or perhaps someone from the dev team will speak up with a better approach.... Wayne On 8/19/07, Luciano Resende <[EMAIL PROTECTED]> wrote: > I have some unit tests that generate some java files in the maven test > phase. > How can I tell maven to now compile these files as source ? > > -- > Luciano Resende > Apache Tuscany Committer > http://people.apache.org/~lresende > http://lresende.blogspot.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
