You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Yan Huang <az...@gmail.com> on 2007/10/01 20:13:26 UTC

"compilerArguments" for maven-compiler-plugin

Hello,

Regarding maven-compiler-plugin, is there a way to pass compiler arguments
on the command line rather than through pom.xml? I don't find "expression"
defined in its manual page though.

Thanks
Yan

Re: "compilerArguments" for maven-compiler-plugin

Posted by Wayne Fay <wa...@gmail.com>.
Maven does not really "like" passing things via arguments -- this is
the exception rather than the norm.

You could probably use -Dmy.arg="blah blah" and then in the
m-compiler-p set <compilerArguments>${my.arg}. But this is not the
"right" way to use Maven.

If you have a few different sets of arguments, you should declare them
in a profile, and set one to be active by default.

Wayne

On 10/1/07, Yan Huang <az...@gmail.com> wrote:
> Hello,
>
> Regarding maven-compiler-plugin, is there a way to pass compiler arguments
> on the command line rather than through pom.xml? I don't find "expression"
> defined in its manual page though.
>
> Thanks
> Yan
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org