【发布时间】:2015-09-28 19:13:45
【问题描述】:
我正在尝试使用命令提示符中的“mvn 测试站点”为我在 maven 中的 selenium 项目生成 xslt 报告。我正在构建失败。这是我收到的命令提示符消息--
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project Framework_datadriven_maven: failed to get report for org.reportyng:reporty-ng: Plugin org.reportyng:reporty-ng:1.2 or one of its dependencies could not be resolved: Failure to find org.reportyng:reporty-ng:jar:1.2 in https://github.com/cosminaru/reporty-ng/raw/master/dist/maven was cached in the local repository, resolution will not be reattempted until the update interval of reporty-ng has elapsed or updates are forced -> [Help 1]
这是我的 POM 文件-
<reporting>
<plugins>
<!-- TestNG-xslt related configuration. -->
<plugin>
<groupId>org.reportyng</groupId>
<artifactId>reporty-ng</artifactId>
<version>1.2</version>
<configuration>
<!-- Output directory for the testng xslt report -->
<outputdir>/target/testng-xslt-report</outputdir>
<sorttestcaselinks>true</sorttestcaselinks>
<testdetailsfilter>FAIL,SKIP,PASS,CONF,BY_CLASS</testdetailsfilter>
<showruntimetotals>true</showruntimetotals>
</configuration>
</plugin>
</plugins>
reporty-ng https://github.com/cosminaru/reporty-ng/raw/master/dist/maven
使用 mvn test 运行项目运行良好。只面临使用“mvn 测试站点”的问题。我正在使用 Maven 版本 3.3.3。请帮忙
【问题讨论】:
-
您的链接结果为 404。您希望从哪个 maven 存储库下载此插件?
-
这是来自我的 POM 文件
还有什么 URL 我可以尝试下载reporty-ng?reporty-ng github.com/cosminaru/reporty-ng/raw/master/dist/maven</url> -
此链接也会导致 404。在尝试将其提供给 Maven 之前,使用 curl 测试您的链接。
-
还有什么 URL 我可以尝试下载 reporty-ng?我找不到其他的
标签: xslt selenium-webdriver testng maven-3