Thanks! You've been so helpful! On 5/26/06, Craig McDaniel <[EMAIL PROTECTED]> wrote:
Try this:/** * @parameter expression="${project.compileSourceRoots}" */ private List compileSourceRoots; ...... compileSourceRoots.add(outputDir.getAbsolutePath()); On 5/26/06, Craig McDaniel <[EMAIL PROTECTED]> wrote: > Well, compilerSourceRoots seems to be read only: > > [ERROR] BUILD ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] Error configuring: > org.apache.maven.plugins:maven-compiler-plugin. Reason: ERROR: Cannot > override read-only parameter: compileSourceRoots in goal: > compiler:compile > [INFO] ------------------------------------------------------------------------ > > So how do I get my generated sources to compile? > > On 5/26/06, Craig McDaniel <[EMAIL PROTECTED]> wrote: > > OK, so I have discovered the "compilerSourceRoots" property of the > > compiler plugin. I was wondering if there is a standard way to do this > > from within my Mojo, so I don't have to add a <plugin> configuration > > for the compiler plugin in my POM. > > > > -- > > Craig McDaniel > > > > > -- > Craig McDaniel > -- Craig McDaniel
-- Craig McDaniel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
