diff --git a/pom.xml b/pom.xml
index 9545de32995..412fd389e45 100644
--- a/pom.xml
+++ b/pom.xml
@@ -820,6 +820,12 @@
4.13.2
test
+
+ com.epam.reportportal
+ agent-java-testng
+ 5.4.0
+ test
+
org.antlr
gunit
diff --git a/remote-api/pom.xml b/remote-api/pom.xml
index b45df5b371d..d6182542584 100644
--- a/remote-api/pom.xml
+++ b/remote-api/pom.xml
@@ -66,12 +66,6 @@
junit
test
-
- com.epam.reportportal
- agent-java-testng
- 5.4.0
- test
-
org.mockito
mockito-core
diff --git a/repository/src/test/resources/META-INF/services/org.testng.ITestNGListener b/repository/src/test/resources/META-INF/services/org.testng.ITestNGListener
new file mode 100644
index 00000000000..f335f0c13f5
--- /dev/null
+++ b/repository/src/test/resources/META-INF/services/org.testng.ITestNGListener
@@ -0,0 +1 @@
+com.epam.reportportal.testng.ReportPortalTestNGListener