You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sebb <se...@gmail.com> on 2009/09/07 15:38:57 UTC
Surefire: passing command-line options to JVM
How can one pass command-line options to the JVM when using Surefire?
It's easy to do this by editting the POM by adding an <argLine> tag to
the <configuration> section.
However I'd like to be able to change the JVM options from the command-line.
Is there a way to do this?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Surefire: passing command-line options to JVM
Posted by Dan Tran <da...@gmail.com>.
it is a known issue ( dont remember the JIRA# thou )
-D
On Mon, Sep 7, 2009 at 12:43 PM, sebb<se...@gmail.com> wrote:
> On 07/09/2009, Dan Tran <da...@gmail.com> wrote:
>> add a maven property to the pom ( ie
>> <properties><name>value</name><properties> ) , use that prop with
>> argline, and then override that prop with -Dname=anotherValue
>
> Thanks, I considered that, but I really want to be able to override
> the value without having to edit the POM.
>
>> -Dan
>>
>>
>> On Mon, Sep 7, 2009 at 6:38 AM, sebb<se...@gmail.com> wrote:
>> > How can one pass command-line options to the JVM when using Surefire?
>> >
>> > It's easy to do this by editting the POM by adding an <argLine> tag to
>> > the <configuration> section.
>> >
>> > However I'd like to be able to change the JVM options from the command-line.
>> >
>> > Is there a way to do this?
>> >
>>
>> > ---------------------------------------------------------------------
>> > 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
>>
>>
>
> ---------------------------------------------------------------------
> 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
Re: Surefire: passing command-line options to JVM
Posted by sebb <se...@gmail.com>.
On 07/09/2009, Dan Tran <da...@gmail.com> wrote:
> add a maven property to the pom ( ie
> <properties><name>value</name><properties> ) , use that prop with
> argline, and then override that prop with -Dname=anotherValue
Thanks, I considered that, but I really want to be able to override
the value without having to edit the POM.
> -Dan
>
>
> On Mon, Sep 7, 2009 at 6:38 AM, sebb<se...@gmail.com> wrote:
> > How can one pass command-line options to the JVM when using Surefire?
> >
> > It's easy to do this by editting the POM by adding an <argLine> tag to
> > the <configuration> section.
> >
> > However I'd like to be able to change the JVM options from the command-line.
> >
> > Is there a way to do this?
> >
>
> > ---------------------------------------------------------------------
> > 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Surefire: passing command-line options to JVM
Posted by Dan Tran <da...@gmail.com>.
add a maven property to the pom ( ie
<properties><name>value</name><properties> ) , use that prop with
argline, and then override that prop with -Dname=anotherValue
-Dan
On Mon, Sep 7, 2009 at 6:38 AM, sebb<se...@gmail.com> wrote:
> How can one pass command-line options to the JVM when using Surefire?
>
> It's easy to do this by editting the POM by adding an <argLine> tag to
> the <configuration> section.
>
> However I'd like to be able to change the JVM options from the command-line.
>
> Is there a way to do this?
>
> ---------------------------------------------------------------------
> 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