Reputation: 15052
I am new to intellij. I am switching from eclispe Kepler.
I do not have a maven project, but I do have a maven directory structure. My classes are in src/main/java with my tests in src/test/java.
My unit tests are complaining because they can't find the classes from src/main/java. What is the proper way to add this to the build path so that my unit tests can find the source?
Upvotes: 2
Views: 9170
Reputation: 15052
Jetbrains directed me to here: http://www.jetbrains.com/idea/webhelp/configuring-module-dependencies-and-libraries.html. I added the main/java directory as a module dependency under the test module and everything started working.
Upvotes: 5
Reputation: 298898
Also, make sure you use packages underneath your source folders.
Upvotes: 12