Testng and maven

when i build the tests with eclipse, all the tests pass, but when i use maven, there are some Appium commands that are not executed, so he jump on some commands, this let the test fail due to an unexpected elements, any help?

Please paste the logs.