I have an existing maven project (IDE used: Sprint Test Tool) and I have very very limited help available around it. I'm new to maven, java and stuff (I know basic java and have done automation in java but haven't worked on full-fledged java projects) and I have to figure our all of this project more or less by myself. I was trying to compile the package but it shows errors in main\src\java that "Messages can NOT be resolved" over some code of this sort: Messages.. I searched through the folders and found there's just one Messages.java file (with that method definition in it) in sub-folders of the "target" folder in the project. So, I was asked to add the path/folder of this sub-folder as source folder and the error was gone.
I believe whole of "target" is created when a maven project is compiled/packaged. And, adding a path to the source folder indexes the path and makes it available for compliation/packaging. So, I'm wondering how the project was compiled and packaged at the first place. I do see Messages.properties in src\main\resources\folders..\Messages.properties and the methods defined in Messages.java seem to have some relationship with this properties file.
I searched through net but couldn't find an answer. Could stack please help me here? Thanks in advance.