RE:Unable to Generate xslt-report with pom.xml (Maven) | Selenium Forum
M
Posted on 07/03/2016
Hello Everyone,

Help will be really appreciated, as I am struggling to generate xslt-report using maven target - mvn site as shown in video when using this pom.xml file. The console return error as follows:


I have attached my pom.xml file below.




INFO] Building MAVEN_TEST_TRIAL 1.0-SNAPSHOT
INFO] ------------------------------------------------------------------------
INFO]
INFO] --- maven-site-plugin:3.3:site (default-site) @ MAVEN_TEST_TRIAL ---
INFO] configuring report plugin org.reportyng:reporty-ng:1.2
WARNING] The POM for org.reportyng:reporty-ng:jar:1.2 is missing, no dependency
information available
INFO] ------------------------------------------------------------------------
INFO] BUILD FAILURE
INFO] ------------------------------------------------------------------------
INFO] Total time: 7.785 s
INFO] Finished at: 2016-03-07T23:45:05+00:00
INFO] Final Memory: 17M/113M
INFO] ------------------------------------------------------------------------
ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:si
e (default-site) on project MAVEN_TEST_TRIAL: failed to get report for org.repo
tyng: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 http
://github.com/cosminaru/reporty-ng/raw/master/dist/maven was cached in the loca
repository, resolution will not be reattempted until the update interval of re
orty-ng has elapsed or updates are forced -> [Help 1]
ERROR]
ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
h.
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 rea
the following articles:
ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
ception.




Regards,

Ola.

M
Replied on 07/03/2016

reporty ng has been deprecated you cannot make xslt reports from maven you have to use ANT.

if you are not using ANT and want to make good looking reports with maven use this

1. go to this link <http://relevantcodes.com/testng-listener-using-extentreports/>
2. create class "ExtentReporterNG". This is Listener class and put second block code in it from upper link and save it.
3. put ExtentReporterNG this listener in your testneg.xml. change package name with your package name.
<listeners>
<listener class-name="package.ExtentReporterNG" />
</listeners>
4. Add dependency in you POM.xml
<!-- Extent Reports -->
<dependency>
<groupId>com.relevantcodes</groupId>
<artifactId>extentreports</artifactId>
<version>2.40.1</version>
</dependency>

5. now open cmd prompt and go to your project location and run command "mvn compile" and after it run "mvn package"
6. go in eclipse and refresh your project and run your testng.xml
7. after running refresh your project and check report in test output folder.
8. a folder generate with your class name. check extent.html in it and open this in web browser.