Я пытался сгенерировать и протестировать свои коды (если они работают) для отчета Cucumber-Maven, а затем открыл командную строку. Я попробовал «mvn clean», это был УСПЕХ. После этого я попробовал «mvn install» и столкнулся с BUILD FAILURE (показана ошибка).
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.844 s
[INFO] Finished at: 2019-02-05T13:14:51+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-surefire-plugin:2.20 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:2.20: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.20 from/to central (https://repo.maven.apache.org/maven2): Connect to webproxy.sample.com:8080 [webproxy.sample.com/205.165.7.13] failed: 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/disp ... nException
Вот мой pom.xml:
org.apache.maven.plugins
maven-compiler-plugin
3.7.0
1.8
1.8
org.apache.maven.plugins
maven-surefire-plugin
2.20
net.masterthought
maven-cucumber-reporting
4.3.0
execution
verify
generate
ExecuteCucumberMavenAF
${project.build.directory}/cucumber-reports-html
${project.build.directory}/cucumber.json
true
true
42
UTF-8
Подробнее здесь: https://stackoverflow.com/questions/545 ... ll-command