Perfect solution: There is no target directory in the maven project created by idea

Table of contents

1.Problem description

2.Solution process


1.Problem description

 When working on a project, the maven project created in idea could not find the target directory when compiled. Although no error was reported when running, it was really uncomfortable for me with obsessive-compulsive disorder, so I decided to find out.


2.Solution process

After consulting the information, I learned that it turned out to be a problem with the setting of the idea. The specific configuration is as follows:

1. First, there is a small gear-like tool in the upper right corner of the project panel, click on it

 2. Then check Show Excluded Fies under "Tree Appearance"

 3. When compiling again, the target directory will be available.

I record the problems I encountered at work and the process of solving them, and I hope it can help everyone!

Guess you like

Origin blog.csdn.net/white0718/article/details/132202684