You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Raymond Domingo <ra...@domingo.nl> on 2006/04/10 16:09:47 UTC
Trying to understand maven readonly parameters
Hello,
Can anyone explain why maven-compiler-plugin setting compileSourceRoots is
readonly ?
Isn't it a pain in the as you have to use the build-helper-maven-plugin to
work around this problem or am I missing something ?
raymond
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Trying to understand maven readonly parameters
Posted by John Casey <ca...@gmail.com>.
readonly parameters are meant for configuration from some other source,
often another element in the POM. In this specific case, direct
configuration of the maven-compiler-plugin could pretty easily lead to
problems with other plugins that need to handle the project sources...that's
because the list of compilable directories would be different for the
compile action than for some other plugin.
The build-helper-maven-plugin simply appends new source directories to the
shared compileSourceRoots project field, much as a code-generating plugin
might.
-john
On 4/10/06, Raymond Domingo <ra...@domingo.nl> wrote:
>
> Hello,
>
> Can anyone explain why maven-compiler-plugin setting compileSourceRoots is
> readonly ?
>
> Isn't it a pain in the as you have to use the build-helper-maven-plugin to
> work around this problem or am I missing something ?
>
> raymond
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Trying to understand maven readonly parameters
Posted by ia...@jpmchase.com.
Hi Raymond,
Most of the time when you see a read-only property like this in the
configuration of a plugin, it's an indication that the plugin is
referencing a property defined within the core project descriptor, in this
case project.build.sourceDirectory.
HTH,
Ian
It's better to be hated for who you are
than loved for who you are not
Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078
"Raymond Domingo"
<raymond@domingo. To: users@maven.apache.org
nl> cc:
Subject: Trying to understand maven readonly parameters
04/10/2006 10:09
AM
Please respond to
"Maven Users
List"
Hello,
Can anyone explain why maven-compiler-plugin setting compileSourceRoots is
readonly ?
Isn't it a pain in the as you have to use the build-helper-maven-plugin to
work around this problem or am I missing something ?
raymond
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org