I. BACKGROUND
When applying idea to create the Maven-archetype-webapp project, I found that there is no Java source folder under the main folder and many small partners have encountered the problem, but I do not know how to solve it, so I will share the resolution steps below.
Second, the solution steps
1. The previous project structure was resolved as follows:
2. Select File->project Structure ...
3. Select the sources item under the Modules tab, right-click on the main folder and select New Folder ... and click OK
4. Enter the name of the folder to create Java, and click OK to continue
5. Right-Select the sources key on the created Java folder to mark the folder as the source folder
6. We found that the Java folder has changed from yellow to blue, and we clicked the OK button to indicate that the setting was complete.
7. After the setup is complete, the project structure is as follows:
This is exactly the structure of our standard MAVEN project, perfect! So far we've solved the idea of creating a Maven-archetype-webapp project without a Java catalog.
Solve the idea of creating a Maven-archetype-webapp project without a Java directory