I have a java project, which i converted to maven using m2e from within eclipse. Since my project was a legacy project, it was not following maven directory structure such as src/main/java and src/test/java, so after the conversion the previous directory structure didnt change.
I am wondering if there is an easy way or shortcut within m2eclipse to refactor my project to the default directory structure used by maven.
I tried adding a new source folder in my src folder and nest the folders to have src/main/java but I am getting the below error.
Please see the snapshot as i dont have enough reputation to post it.
Snapshot
The error message is pointing out the problem - you can't nest source folders, as the package names would make no sense. It is easily fixed:
Exit the Properties dialog and a Project/clean should compile everything correctly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With