2010-12-03 4 views
2

Das ist, was ich versuche zu tun:Wie kann man die Ausführung von maven-surefire-plugin auf zwei separate Ausführungen aufteilen?

[...] 
<plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-surefire-plugin</artifactId> 
    <version>2.5</version> 
    <configuration> 
    <excludes> 
     <exclude>**/*JSFTest.java</exclude> 
    </excludes> 
    <executions> 
     <execution> 
     <phase>integration-test</phase> 
     <goals> 
      <goal>test</goal> 
     </goals> 
     <configuration> 
      <excludes> 
      <!-- intentionally empty to override configuration above --> 
      </excludes> 
      <includes> 
      <include>**/*JSFTest.java</include> 
      </includes> 
     </configuration> 
     </execution> 
    </executions> 
    </plugin> 

Mein individuellen <execution> hat alle JSF bezogenen Tests im Behälter laufen. Leider findet es keine Tests. Sieht aus wie <includes> funktioniert nicht. Während <excludes> diese Tests während Phase test effektiv ausschließen. Was ist hier falsch?

Antwort

2

Mehr als Notiz an mich selbst: ;-)

<excludes> 
    <exclude>none</exclude> 
<excludes> 

Eine leere schließt nicht funktioniert.