On Aug 18, 2011, at 9:02 PM, Curt Arnold wrote:
>
> On Aug 18, 2011, at 11:35 AM, Christian Grobmeier wrote:
>
>> I think the main reason for antrun is to enhance the generated site
>> afterwards, and probably for publishing.
>> Most other stuff can be done with maven, so I would give my +1 to
>> reduce the Ant dependency to a minimum - again.
>>
>> Imho antrun should not do any tests
>>
>
> If I remember correctly, the reason antrun was used over the junit plugin, is
> that the log4j unit tests have side effects (typically leaving files around)
> and changing the order that tests are run can cause tests to fail. Not that
> way that it should be, but the way it was.\\
I had this problem in Log4j 2.0. The solution is
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>always</forkMode>
</configuration>
</plugin>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]