How to integrate reportportal into pom.xml?

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> <configuration> <properties> <property> <name>listener</name> <value>com.epam.reportportal.junit.ReportPortalListener</value> </property> </properties> </configuration> </plugin> 

Errors fall:

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:15) at org.apache.maven.lifecycle .internal.MojoExecutor.execute (MojoExecutor.java:146)

The second option:

 @RunWith(com.epam.reportportal.junit.CustomJUnitRunner.class) 

Then it cannot import com.epam.reportportal.junit.CustomJUnitRunner.class , there is no jarnik in the network.

The third option:

 import org.junit.runner.JUnitCore; import com.epam.reportportal.junit.ReportPortalListener; public class JUnitScriptsRunner { public static void main(String[] args) { JUnitCore core= new JUnitCore(); core.addListener(new ReportPortalListener()); core.run(UserTestClass1.class, UserTestClass2.class, UserTestClass3.class); } } 

Cannot import com.epam.reportportal.junit.ReportPortalListener

Does someone have successful cases how to do this?

    0