My application is laid out precisely according to the Maven layout conventions.
I can compile my source just fine and package it and everything! However,
when I run my tests from the command line with mvn test, I get a "cannot find
symbol" error referencing one of my source files--indeed, the class I actually
want to test. I am sure this is something silly, but is there anything special
I have to do for Maven to look at target/classes in the classpath?
Incidentally, when I run the test goal from within IntelliJ (rather than the
command line as above), I don't get that "cannot find symbol" error but simply
find this:
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Not compiling test sources
[INFO] [surefire:test {execution: default-test}]
[INFO] Tests are skipped.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
I imagine this result is for the same reason as the other, but are there any
IntelliJ users out there who can also shed light on why the reporting would be
different?
Thanks.