我在指定maven-failsafe-plugin时遇到了问题:
@ContextConfiguration(locations = {"classpath:testApplicationContext.xml"})
public class SomeIT extends AbstractTestNGSpringContextTests
插件无法再处理此测试。
插件配置:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.18.1</version>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<execution>
<id>verify</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>