I am completely new to maven and testng. I am using maven as build tool, and testng as my testing framework. I am not following the standard maven project structure. Now I want
If you keep this in a single place you need to set the testClassesDirectory argument of the maven-surefire-plugin configuration:
[...]
org.apache.maven.plugins
maven-surefire-plugin
2.17
path/to/compiled test classes
[...]
All of this is well documented in the Maven Surefire Plugin Documentation