You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2010/09/03 17:05:13 UTC
svn commit: r992320 - /openejb/trunk/openejb3/container/openejb-core/pom.xml
Author: jlmonteiro
Date: Fri Sep 3 15:05:12 2010
New Revision: 992320
URL: http://svn.apache.org/viewvc?rev=992320&view=rev
Log:
It seems Surefire is unhappy when in the same project, we try to execute both JUnit and TestNG tests. So, let's try a work around (See SUREFIRE-377).
Modified:
openejb/trunk/openejb3/container/openejb-core/pom.xml
Modified: openejb/trunk/openejb3/container/openejb-core/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/pom.xml?rev=992320&r1=992319&r2=992320&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/pom.xml (original)
+++ openejb/trunk/openejb3/container/openejb-core/pom.xml Fri Sep 3 15:05:12 2010
@@ -121,6 +121,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>pertest</forkMode>
+ <testNGArtifactName>none:none</testNGArtifactName>
<argLine>-Xmx256m "-javaagent:${basedir}/target/openejb-javaagent-${version}.jar" -enableassertions</argLine>
<workingDirectory>${basedir}/target</workingDirectory>
<systemProperties>
@@ -135,8 +136,27 @@
</systemProperties>
<excludes>
<exclude>**/TestHandler.java</exclude>
+ <exclude>org/apache/openejb/cdi/**</exclude>
</excludes>
</configuration>
+ <executions>
+ <execution>
+ <id>test-testng</id>
+ <phase>test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <junitArtifactName>none:none</junitArtifactName>
+ <excludes>
+ <exclude>**</exclude>
+ </excludes>
+ <includes>
+ <include>org/apache/openejb/cdi/**</include>
+ </includes>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>