Thank you all for your help. It turned out to be I have corrupted Junit/4.4 
repository which I got it from our internal repository. When I pointed the POM 
file to maven central repository, everything started working.

I am not sure why maven did not complain about the corrupted Junit folders. The 
folder was missing pom and sha1 files (the folder had only junit-4.4.jar).

-Sankar

-----Original Message-----
From: Bouiaw [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2008 3:35 AM
To: Maven Users List
Subject: Re: maven2 with Junit 4 ignores @Test annotations

Sorry, I did'nt see the pom.xml in your message ;-)

On Fri, May 30, 2008 at 9:33 AM, Bouiaw <[EMAIL PROTECTED]> wrote:
> This problem usually come from older release of surefire plugin, try
> to use the lastest (2.4.3) in you pom.
>
> On Fri, May 30, 2008 at 9:31 AM, Martin Höller <[EMAIL PROTECTED]> wrote:
>> On Friday 30 May 2008 Martin wrote:
>>> Looks like you'll need TestDecorator class from junit-4.1
>>> http://www.jdocs.com/junit/4.1/junit/extensions/TestDecorator.html
>>
>> No, you don't need this!
>>
>> Your code  and POM looks ok, where did you put your test-classes? Should be
>> in src/test/java.
>>
>> What did you execute? 'mvn test' should compile and run your tests.
>>
>> hth,
>> - martin
>>
>

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

This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.


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

Reply via email to