问题
I am trying to set up Allure reports in my automation project. I am following - https://github.com/allure-framework/allure-core/wiki/TestNG, but the http://localhost:8080 only shows "Directory: /" text. I also found Unable to Deploy Allure report on Jetty server had the same problem but the solution there didn't help.
回答1:
Looks like you have wrong site path for jetty, try to change jetty parameter from:
<webAppSourceDirectory>${project.basedir}/site/allure-maven-plugin</webAppSourceDirectory>
to
<webAppSourceDirectory>${project.build.directory}/site/allure-maven-plugin</webAppSourceDirectory>
来源:https://stackoverflow.com/questions/39636873/not-able-to-view-allure-report-on-jetty-server