1

POM.XML 有:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.15</version>
    <configuration>
    <suiteXmlFiles>
       <suiteXmlFile>src\test\resources\all_testing.xml</suiteXmlFile>
    </suiteXmlFiles>
    </configuration> 
</plugin>

当我在 POM.xml 中包含以下标签时,出现错误:

"Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project"

我怎样才能解决这个问题?

4

1 回答 1

0
<suiteXmlFiles>
       <suiteXmlFile>src\test\resources\all_testing.xml</suiteXmlFile>
</suiteXmlFiles>

尝试用“suiteXmlFile”标签内的斜杠(“/”)替换反斜杠(“\”)。

于 2013-12-07T01:20:10.720 回答