Remember once RocketMQ source IDEA import process

First, download the source code, can official website to download source packages, may be pulled down from the direct introduction GitHub IDEA. If this is the official website to download the source zip package, directly as a module into the current project, and not repeat them here too much, just to emphasize the point that engineering structures:

 

 RocketMQ source code for multi-module maven project, there is a little difference with the eclipse, the eclipse that parent project and sub-module is flat stage show in package explore view, where the sub-module is included in the parent module inside.

After checking maven project into view whether error:

 

 

 

If the introduced error, you look at FIG IDEA disposed inside the check whether there are arranged:

 My problem here under that first manifested is being given a lot of java class, opening the view is dependent jar can not be found, so the view to see Maven, which are all found Plugins red wavy line, the root cause is the lack of these plugins, then reimport the next project, or error, thought it was a network problem, then the next browser access, is accessible at the moment, think of the configuration of the maven settings.xml, opened it, I'm just here to configure the company PW, you can not find PW from the corresponding plug-in, add it again reimport after the official maven repository, and sure enough progress in below to download the corresponding plugins, and after all the download is complete, come for a while, after the end of the IDEA automatically compile error, and the internet was said closed automatically compile, simply nonsense, so to find class java error Check error reason, found open without error, and the focus of the plan, the reason is because the pom.xml file of these modules is ignored, as shown below :

 

 If your pom.xml are ignored, the tick can be removed. Later re-operate the following, when prompted to import is ignored. So, ah, each step must be specified is doing is very important.

Guess you like

Origin www.cnblogs.com/restart30/p/11627952.html