idea2019 import certain issues maven project

idea2019 import certain issues maven project

		idea2019导入maven项目,会出现很多莫名其妙的问题,如果出现问题,从以下几点查看
  1. View maven configuration
    select File -> Settings -> Build, Execution, Deployment -> Build Tools -> whether the directory Maven, see box is the installation directory maven Here Insert Picture Description
    whether jre to see whether the import of selected local jdk and jre Runner of the sameHere Insert Picture Description

    改好之后点击Apply,然后ok,等待进度运行结束
    
  2. Check the configuration jdk
      jdk select a local path, then Apply, ok
    Here Insert Picture Description

  3. If you can not wait to solve the problem, pom.xml file is still displayed in red, an error Unable to import maven project: See logs for details, click Maven can try one of the following two icons, or select the project, right, find Maven options click Reimport
    Here Insert Picture Description

  4. If that does not work, still red, try the Maven clean, wait for the download to complete, then click install, wait for the download to complete.

Here Insert Picture Description

  1. If that does not solve the problem, but part of the report pom.xml red, some do not report, try to click m, then in Part 2 of the box, enter
    mvn -v idea: idea, to complement maven plugin download.
    Here Insert Picture Description
    Then wait.

If you still can not join dependence, say what words the lack of a similar package. I would like him to perform several clean, validate, comlile, test, package, verify and install, not in accordance with the implementation of information along the line, the most important is clean and install, try more than once until after the install is successful, import-dependent explanation, I did not completely understand why, perhaps because the lack of parent-dependent according to which part of the above-mentioned error as to say, but do not know what module missing

However, this method I was one hundred test Braun

Published 12 original articles · won praise 7 · views 4678

Guess you like

Origin blog.csdn.net/qq_30385099/article/details/101313398