Hello everyone,
I'm trying to change the whole architecture structure I've got to get it working along
Maven 2, following the best practices (
http://maven.apache.org/guides/mini/guide-using-one-source-directory.html). So, currently I've got a project with a structure like this:
/
+- pom.xml
+- src/
...+- main/
......+- java/
..........+- /mypack/
..............+- core/
..............+- gui/
...+- test/
......+- java/
..........+- /mypack/
..............+- core/
..............+- gui/
+- core/
...+- pom.xml
...+- target/
......+- my-core-1.0.jar
+- gui/
...+- pom.xml
...+- target/
......+- my-module-1.0.jar
It's building ok when I don't tell Maven to run the
test cases, but when turning it on, maven-surefire-plugin gets confused for some reason. The issue is: when testing only the core module, surefire's plugin is trying to run also the tests from the gui module. That's an absurd, since in core/pom.xml I'm including ONLY core's tests:
<testSourceDirectory>../src/test/java/</testSourceDirectory>
...
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/core/**</include>
</includes>
</configuration>
</plugin>
Did anybody already experience this problem?
Thanks a lot.
[ April 15, 2006: Message edited by: Tiago Fernandez ]