Skip to content

Commit 069af04

Browse files
Arquillian containers (junit / spock) exclusion on different surefire executions)
1 parent 5e5ce4a commit 069af04

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

pom.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,19 @@
212212
<version>2.16</version>
213213
<executions>
214214
<execution>
215-
<id>junit</id>
215+
<id>default-test</id>
216216
<phase>test</phase>
217217
<goals>
218218
<goal>test</goal>
219219
</goals>
220+
<configuration>
221+
<classpathDependencyExcludes>
222+
<classpathDependencyExcludes>org.jboss.arquillian.spock:arquillian-spock-container</classpathDependencyExcludes>
223+
</classpathDependencyExcludes>
224+
</configuration>
220225
</execution>
221226
<execution>
222-
<id>spock</id>
227+
<id>spock-test</id>
223228
<phase>test</phase>
224229
<goals>
225230
<goal>test</goal>
@@ -228,6 +233,9 @@
228233
<includes>
229234
<include>**/*Specification.java</include>
230235
</includes>
236+
<classpathDependencyExcludes>
237+
<classpathDependencyExcludes>org.jboss.arquillian.junit:arquillian-junit-container</classpathDependencyExcludes>
238+
</classpathDependencyExcludes>
231239
</configuration>
232240
</execution>
233241
</executions>
@@ -266,6 +274,7 @@
266274
</plugin>
267275
</plugins>
268276
<pluginManagement>
277+
269278
<plugins>
270279
<plugin>
271280
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)