0
大家好我实际上使用Jenkins和testlink(使用testLink插件)来进行测试自动化。Maven执行测试不起作用
我对IC和testlink不熟悉,所以我尝试着用“TestLink插件教程”做好开端。
但是当我运行构建我收到以下错误:
[workspace] $ C:\maven-3.0.4\bin\mvn.bat -s C:\maven-3.0.4\conf\settings.xml -gs C:\maven- 3.0.4\conf\settings.xml clean test -DsuiteXmlFiles=suite.xml [INFO] --------------------------------------------------------------------- [INFO] Building Jenkins TestLink Plug-in Tutorial 0.3-SNAPSHOT [INFO] --------------------------------------------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ jenkins-testlink-plugin- tutorial ------------------------------------------------------------ [INFO] Deleting C:\Jenkins\jobs\Jenkins TestLink Plug-in examples\workspace\target [INFO] [INFO] --- docbkx-maven-plugin:2.0.11:generate-pdf (book-output) @ jenkins-testlink-plugin-tutorial --- [INFO] Processing input file: book.xml [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23.377s [INFO] Finished at: Tue Feb 19 17:43:14 CET 2013 [INFO] Final Memory: 8M/112M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.agilejava.docbkx:docbkx-maven-plugin:2.0.11:generate-pdf (book-output) on project jenkins-testlink-plugin-tutorial: Failed to read source: Connection timed out: connect -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
我用我的行家/ conf目录的settings.xml中定义的代理。
我认为maven在生成pdf时无法达到目标测试。
我GOOGLE了很多,但没有真正有用,有人可以帮我吗?
我将认为docbkx正试图从外部(互联网)访问DTD文件等,以验证XML文件。此外,为什么你使用这种奇怪的命令行参数(只需使用** mvn clean test **)。而且通常你不需要套件文件。最好的方法是真正运行** mvn -X ... **并深入观察输出。 – khmarbaise 2013-02-19 17:46:32
在maven/conf/settings.xml中定义的东西是错误的位置,因为这是maven发行版的一部分。它将在您下次更新/更改Maven版本时被覆盖。更好的位置是〜/ .m2/settings.xml文件,在jenkins等CI解决方案中运行也是如此。 – khmarbaise 2013-02-19 17:54:57