When built from eclipse the test classes are generated under target/test-classes however this is empty (only the test resources are copies but no test classes ) when I run
mvn clean install
I see the following messages
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile)
@ core --- [WARNING] File encoding has not been set, using platform
encoding US-ASCII, i.e. build is platform dependent! [INFO] Compiling
46 source files to
/Users/root/Perforce/Server/DL/Server/dev/core/target/test-classes
[INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @
core ---
Wondering where did those classes go. When I ran
mvn -X install
I saw
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile)
@ core --- [WARNING] File encoding has not been set, using platform
encoding US-ASCII, i.e. build is platform dependent! [INFO] Compiling
46 source files to
/Users/root/Perforce/Server/DL/Server/dev/core/target/test-classes
[INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @
core ---
[DEBUG] Output directory:
/Users/root/Perforce/Server/DL/Server/dev/core/target/test-classess
[DEBUG] CompilerReuseStrategy: reuseCreated [DEBUG]
useIncrementalCompilation enabled [DEBUG] Stale source detected:
/Users/root/Perforce/Server/DL/Server/dev/core/src/test/java/test/datastore/FileTest.java
And all other files.
Please suggest any way to debug further why the compiled test classes are not present so that the tests can be run in the next phase.
Note that this is a sub project under a parent project and all other subproject's tests classes are compiled and run but not this one. Strange the parent POM has all the settings so not sure whats special about this