Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ???

like image 941
Dennis Ahaus Avatar asked Oct 19 '13 00:10

Dennis Ahaus


2 Answers

Preferences -> General -> Workspace -> Refresh using native hooks or polling

When enabled, any changes made by external editors will be automatically discovered by the Workbench.

like image 102
Robert Newton Avatar answered Oct 17 '22 22:10

Robert Newton


From my experience it would seam that Eclipse does not monitor the file system for changes. So if you created your classes the you manually ran maven from command line, I suspect you'd have to right click your project in Eclipse (from the Navigator for example), and click refresh, and only after this you'll see the new files.

You could also install the m2e and the m2-wtp maven plugins for Eclipse, and run your build process from inside Eclipse which should detect all the changes on the file system.

like image 29
Morfic Avatar answered Oct 17 '22 20:10

Morfic