Why can't I use New-> Source Folder in a newly created maven webapp project in Eclipse?

I created a new maven webapp project in Eclipse, and there is a folder src / main / resources and src / main / java, so I right-click on the project folder and select "Create" β†’ "Source folder", When I type "src / main / java ", I just get the error message:

The folder is already the source folder.

and I found in my project β€œJava path property” the src / main / java configuration path Java build path why does the project have such a configuration until there is such a folder as src / main / java?

+4
source share
3 answers

New > Folder. Eclipse , Maven.

, Eclipse src/main/java , Maven , , . , / , ​​ . , , Eclipse , .

+5

, , . ,

Build Path -> Use as source folder

, , "",

0

This is absurd, but after me they worked:

  • Create regular folder: Create β†’ Folder
  • Delete this folder
  • Create a new source folder: Create β†’ Source folder
0
source

Source: https://habr.com/ru/post/1629599/


All Articles