maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barrie Treloar <>
Subject Re: "WhatWeSayWeDo" != "WhatWeDo"
Date Mon, 16 Dec 2013 03:11:05 GMT
On 16 December 2013 12:45, Martin Gainty <> wrote:
> Folks-
>     /**
>      * The source directories containing the sources to be compiled.
>      */
>     @Parameter( defaultValue = "${project.compileSourceRoots}", readonly = true, required
= true )
> For some reason I cannot locate compileSourceRoots anywhere on maven-compiler-plugin
> do I need better glasses to read this page properly?

I had to do some googling to find where in the documentation to point
you to as I'm too rusty to be able to point you to the docs which
describes this.
I sorry to say that I struggled to find what I wanted.

A lot of this is from memory and may not be quite correct for 3.x

${project... means from the interpolate value
( named "project"
which gets injected by Plexus automatically
This is a MavenProject object.

The method you are talking about is here

I thought had some guidance
on access MavenProject but I can't find anything.

I finally found a similar example,ortheeffectivepom.
which shows you how to have a local variable get injected with this
value so you can reference it in your Mojo. But if you dont need that
variable, you can just reference its properties directly like
CompilerMojo does for the compileSourceRoots variable.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message