Hi Marco, You have too approach the formal one and the customised one.
In the formal approach, you will move your tests in the default directory In the customised approach, you will set the testSourceDirectory element of build to the path of your tests. see [1] <project> ... <build> ... <testSourceDirectory>test/java</testSourceDirectory> ... </build> ... </project> Hope this helps. Raphaël [1]:http://maven.apache.org/maven-model/maven.html 2006/3/7, Marco Mistroni <[EMAIL PROTECTED]>: > > Hi all, > i m trying ot use Maven2 in my project,..... > > structure of my dir is > > <mydir> > |__src > |____main > |___ java > |___ resources > > |___ test > |__ java > > > i m trying to run some junit tests. > according to docs ihave read (about maven directory structure), i should > place > tests in the test\java directory.. but when i do that, > maven-surefire-plugin > does not find them > > it finds them only if i put int he src\main\test directory > > what is the correct approach? >
