Wim Deblauwe wrote:
> I finally gave up on using the surefire plugin with TestNG.  Now I just
>> use antrun to run the testng ant task and generate a report.
>>
> 
> I did not know that was possible. How do you remove surefire from the
> lifecycle?
> 
> regards,
> 
> Wim
> 

You can't actually remove surefire from the lifecycle.  At least not as
far as I've been able to determine with my limited knowledge of Maven.
You can however tell it to skip running any tests by adding the
following to your pom.xml:

<build>
    ...
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.3</version>
        <configuration>
            <skip>true</skip>
        </configuration>
    </plugin>
    ...
</build>

If you still want to run unit tests, then you run the testng ant task
via the Antrun plugin.  If you're curious, I can post mine.

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

Reply via email to