I have just joined a project which have been built by another team. The project uses SVN as Revision System Control and Maven to build bundles. I use Eclipse Luna IDE.
When I try to add new class I get the error saying: "Source folder is not a Java project."
I thought that it is not a big problem and I created *.java file manually, but then when I was trying to write some code IDE didn't give me any hint related to code, Eclipse didn't add any imports automatically and it looks like Eclipse treats my java file as a simple text file.
I feel like I'd working with notepad not IDE. Does anyone know what do I have to add to project, change in configuration or whatever I have to do to make Eclipse working like Eclipse not just a text editor?
Best regards and thanks in advance, Konrad
You probably didn't enable the Maven nature when you imported the project. There are two ways to do this:
To check, look into the .project
file (might not be visible inside of Eclipse). There must be a line
<nature>org.eclipse.m2e.core.maven2Nature</nature>
[EDIT] The project structure doesn't look right. You should checkout trunk
from SVN, not root
.