Solve the idea of creating a Maven-archetype-webapp project without a Java directory

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.