You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jérôme BERNARD <je...@gmail.com> on 2005/12/05 11:43:13 UTC

Re: surefire forking

I did using forkMode=once.

On a windows box, it fails because the command-line is too long (there are
too many dependencies..).
On a UNIX box, I do have a different error:
"Embedded error: Error while executing forked tests.
-classpath: not found"

Regards,
Jérôme.

2005/12/4, Jason van Zyl <ja...@maven.org>:
>
> Hi,
>
> If anyone wants to try the new code for surefire forking a snapshot
> plugin is available. Please refer to this guide to get yourself going:
>
>
> http://maven.apache.org/guides/development/guide-testing-development-plugins.html
>
> --
>
> jvz.
>
> Jason van Zyl
> jason at maven.org
> http://maven.apache.org
>
> We all have problems. How we deal with them is a measure of our worth.
>
>   -- Unknown
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: surefire forking

Posted by Jason van Zyl <ja...@maven.org>.
Jérôme BERNARD wrote:
> I did using forkMode=once.

There was a problem the version of the plugin that went up to the 
repository and there are problems with the command line which I'm fixing 
now.

> On a windows box, it fails because the command-line is too long (there are
> too many dependencies..).
> On a UNIX box, I do have a different error:
> "Embedded error: Error while executing forked tests.
> -classpath: not found"
> 
> Regards,
> Jérôme.
> 
> 2005/12/4, Jason van Zyl <ja...@maven.org>:
> 
>>Hi,
>>
>>If anyone wants to try the new code for surefire forking a snapshot
>>plugin is available. Please refer to this guide to get yourself going:
>>
>>
>>http://maven.apache.org/guides/development/guide-testing-development-plugins.html
>>
>>--
>>
>>jvz.
>>
>>Jason van Zyl
>>jason at maven.org
>>http://maven.apache.org
>>
>>We all have problems. How we deal with them is a measure of our worth.
>>
>>  -- Unknown
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 


-- 

jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

believe nothing, no matter where you read it,
or who has said it,
not even if i have said it,
unless it agrees with your own reason
and your own common sense.

  -- Buddha

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


Re: surefire forking

Posted by Miodrag Glumac <mi...@motricity.com>.
I had the same problem.  I got the latest code and uncommented the 
following line in SurefirePlugin.java:

  // surefireBooter.setJvm( jvm );

This appeared to fix the problem.

Stephen Cowx wrote:

> Hi
>
> I get the same error on linux.  If I remove the  
> <forkMode>once</forkMode> the build works.
> If it helps,  I have excluded all unit tests in my build and the 
> behaviour is the same, so... the problem has nothing to do with the 
> tests themselves.
>
> Regards
>
> Stephen
>
>
> Jérôme BERNARD wrote:
>
>> I did using forkMode=once.
>>
>> On a windows box, it fails because the command-line is too long 
>> (there are
>> too many dependencies..).
>> On a UNIX box, I do have a different error:
>> "Embedded error: Error while executing forked tests.
>> -classpath: not found"
>>
>> Regards,
>> Jérôme.
>>
>> 2005/12/4, Jason van Zyl <ja...@maven.org>:
>>  
>>
>>> Hi,
>>>
>>> If anyone wants to try the new code for surefire forking a snapshot
>>> plugin is available. Please refer to this guide to get yourself going:
>>>
>>>
>>> http://maven.apache.org/guides/development/guide-testing-development-plugins.html 
>>>
>>>
>>> -- 
>>>
>>> jvz.
>>>
>>> Jason van Zyl
>>> jason at maven.org
>>> http://maven.apache.org
>>>
>>> We all have problems. How we deal with them is a measure of our worth.
>>>
>>>  -- Unknown
>>>
>>> ---------------------------------------------------------------------
>>> 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 forking

Posted by Stephen Cowx <sc...@explosion-it.net>.
Hi

I get the same error on linux.  If I remove the  
<forkMode>once</forkMode> the build works. 

If it helps,  I have excluded all unit tests in my build and the 
behaviour is the same, so... the problem has nothing to do with the 
tests themselves.

Regards

Stephen


Jérôme BERNARD wrote:

>I did using forkMode=once.
>
>On a windows box, it fails because the command-line is too long (there are
>too many dependencies..).
>On a UNIX box, I do have a different error:
>"Embedded error: Error while executing forked tests.
>-classpath: not found"
>
>Regards,
>Jérôme.
>
>2005/12/4, Jason van Zyl <ja...@maven.org>:
>  
>
>>Hi,
>>
>>If anyone wants to try the new code for surefire forking a snapshot
>>plugin is available. Please refer to this guide to get yourself going:
>>
>>
>>http://maven.apache.org/guides/development/guide-testing-development-plugins.html
>>
>>--
>>
>>jvz.
>>
>>Jason van Zyl
>>jason at maven.org
>>http://maven.apache.org
>>
>>We all have problems. How we deal with them is a measure of our worth.
>>
>>  -- Unknown
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>    
>>
>
>  
>