Thank you for your help,
I'm not sure I understand why the plugin doesn't support in configuring
it using a property.
In any case, I have changed both the maven-embedder and
maven-compiler-plugin (it is a matter of changing xml file. How easy ;-)
)
...and now it works

-----Original Message-----
From: Tom Huybrechts [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 02, 2007 7:07 PM
To: Maven Users List
Subject: Re: Configure java compiler fork

I'm sorry, it looks like I didn't read your question well enough :)

If you look at the compile goal documentation, you can see the fork
parameter.
You can only set something from the commandline if you see an
'expression' attribute here with value ${some.key}. Since this is not
available for fork, you're out of luck.

You could try to fake it, by configuring the compiler plugin in your
project with <fork>${fork}</fork> You can also set a
<properties><fork>true</fork></properties> as a default in your pom.

Then you can specify -Dfork=true|false from the commandline.

Tom

On 1/2/07, Rahamim, Zvi (Zvi) <[EMAIL PROTECTED]> wrote:
> I read the documentation, but I didn't see the option to set it using 
> property.
>
> -----Original Message-----
> From: Tom Huybrechts [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 02, 2007 3:14 PM
> To: Maven Users List
> Subject: Re: Configure java compiler fork
>
> http://www.google.com/search?q=maven2+compiler+fork&ie=utf-8&oe=utf-8&;
> rl s=org.mozilla:en-US:official&client=firefox-a
>
> On 1/2/07, Rahamim, Zvi (Zvi) <[EMAIL PROTECTED]> wrote:
> > Hi,
> > Is there a way to set (in the java compiler plugin) the fork value 
> > to true not through the pom.xml but using property?
> > (something like maven.compiler.fork=true) Thanks
> >
> > --------------------------------------------------------------------
> > - 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]
>
>
>
> ---------------------------------------------------------------------
> 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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to