How to run same script on multiple android device/emulator at a time?

My Machine’s OS: Windows 10
Device’s OS: Android
IDE: IntelliJ IDEA
Project Type: Maven
Appium: v1.6.6-beta.4

  1. Two devices configuration with selenium grid: Done
  2. Start 2 different port: Done

In many tutorials I have seen after 2nd step they are changing in testng.xml, but in my case as I’m using maven project I don’t have any testng.xml file, I have pom.xml, how I can overcome this steps for Maven project, for running script on multiple device at a time?

Another question, Is there any better way except selenium grid server for doing this?

Have you found the solution for that problem?
Please help me, I am facing the same problem