javaeclipsemaven

Eclipse maven after compile cannot see target/classes folder in Eclipse


After doing mvn clean compile install i can not see any files in target/classes folder in eclipse. But when i have a look in filesystem the folder is there with compiled classes files inside. But when i start a unit test, it says "there is no target/classes folder"

Any ideas ???


Solution

  • Solution was: Right click project -> properties -> build path -> Source tab -> "Allow output folders for source folders" and add the output folder target/classes explicit to each source folder. This works for me and after adding all folders, project could be compiled and executed