Nervermind what I said before!!

Here is the solution:

Properties mavenProperty = new Properties();
mavenProperty.setProperty("maven.test.skip", "true");
InvocationRequest request = new DefaultInvocationRequest();
request.setProperties(mavenProperty);

Thank you all for the help!

Cheers,
--
David Nemer
Sent from Kaiserslautern, RP, Germany

On Thu, Apr 30, 2009 at 1:02 AM, David Nemer <davidne...@gmail.com> wrote:

> Hey all,
>
> as I was googling it, I found that the property is: maven.test.skip
> But how would I specify that in InvocationRequest.setProperty(Properties
> arg0);
>
> In other words, I need to make maven.test.skip a Property.
>
> Does anyone know it?
>
> --
> David Nemer
> Sent from Kaiserslautern, RP, Germany
>
> On Wed, Apr 29, 2009 at 9:02 PM, Nick Stolwijk <nick.stolw...@gmail.com>wrote:
>
>> Normally you would add a property "-DskipTests", I guess you have to
>> look at the setProperties of the InvocationRequest [1]
>>
>> [1]
>> http://maven.apache.org/shared/maven-invoker/apidocs/org/apache/maven/shared/invoker/InvocationRequest.html#setProperties(java.util.Properties)<http://maven.apache.org/shared/maven-invoker/apidocs/org/apache/maven/shared/invoker/InvocationRequest.html#setProperties%28java.util.Properties%29>
>>
>> Hth,
>>
>> Nick Stolwijk
>> ~Java Developer~
>>
>> Iprofs BV.
>> Claus Sluterweg 125
>> 2012 WS Haarlem
>> www.iprofs.nl
>>
>>
>>
>> On Wed, Apr 29, 2009 at 8:53 PM, David Nemer <davidne...@gmail.com>
>> wrote:
>> > request
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>

Reply via email to