title: IntelliJ IDEA, maven project does not automatically import dependencies
body: <p>I imported a maven project, but idea does not automatically import dependencies.</p>
  
  <p>But I've checked the box for "Import Maven projects automatically".</p>
  
  <p>I tried to delete .idea  and .iml and re-import the project.</p>
  
  <p>About idea:</p>
  
  <pre><code>IntelliJ IDEA 2018.1.1 (Ultimate Edition)
  Build #IU-181.4445.78, built on April 10, 2018
  Licensed to **
  Subscription is active until October 14, 2018
  JRE: 1.8.0_152-release-1136-b27 x86_64
  JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  macOS 10.13.4
  </code></pre>
  
  <p>The structure of my project in idea：
  <a href="https://i.stack.imgur.com/VWMjn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VWMjn.png" alt="enter image description here"></a></p>
  
  <p>Update problem！</p>
  
  <p>I found something wrong with my <em>pom.xml</em>,If I change into other <em>pom.xml</em>, I can import the dependency automatically. But I don't know where the problem is.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;org.dai&lt;/groupId&gt;
      &lt;artifactId&gt;micro&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
  
      &lt;properties&gt;
          &lt;spring-boot.version&gt;2.0.2.RELEASE&lt;/spring-boot.version&gt;
          &lt;commons-lang3.version&gt;3.1&lt;/commons-lang3.version&gt;
          &lt;postgresql.version&gt;9.4.1212&lt;/postgresql.version&gt;
          &lt;commons-codec.version&gt;1.10&lt;/commons-codec.version&gt;
          &lt;httpclient.version&gt;4.5.2&lt;/httpclient.version&gt;
          &lt;maven-compiler-plugin.version&gt;3.1&lt;/maven-compiler-plugin.version&gt;
          &lt;java-jwt.version&gt;3.2.0&lt;/java-jwt.version&gt;
          &lt;wsdl4j.version&gt;1.6.3&lt;/wsdl4j.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.fasterxml.jackson.datatype&lt;/groupId&gt;
                  &lt;artifactId&gt;jackson-datatype-jsr310&lt;/artifactId&gt;
                  &lt;version&gt;2.9.0&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.auth0&lt;/groupId&gt;
                  &lt;artifactId&gt;java-jwt&lt;/artifactId&gt;
                  &lt;version&gt;${java-jwt.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
                  &lt;version&gt;${commons-lang3.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
                  &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
                  &lt;version&gt;${postgresql.version}&lt;/version&gt;
                  &lt;classifier/&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;commons-codec&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-codec&lt;/artifactId&gt;
                  &lt;version&gt;${commons-codec.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
                  &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
                  &lt;version&gt;${httpclient.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
                  &lt;version&gt;${spring-boot.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-thymeleaf&lt;/artifactId&gt;
                  &lt;version&gt;${spring-boot.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-web-services&lt;/artifactId&gt;
                  &lt;version&gt;${spring-boot.version}&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
                  &lt;version&gt;${spring-boot.version}&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
                  &lt;version&gt;${spring-boot.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-data-redis&lt;/artifactId&gt;
                  &lt;version&gt;${spring-boot.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-aop&lt;/artifactId&gt;
                  &lt;version&gt;${spring-boot.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-amqp&lt;/artifactId&gt;
                  &lt;version&gt;${spring-boot.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;wsdl4j&lt;/groupId&gt;
                  &lt;artifactId&gt;wsdl4j&lt;/artifactId&gt;
                  &lt;version&gt;${wsdl4j.version}&lt;/version&gt;
              &lt;/dependency&gt;
  
          &lt;/dependencies&gt;
  
      &lt;/dependencyManagement&gt;
      &lt;build&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                      &lt;version&gt;${maven-compiler-plugin.version}&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;source&gt;1.8&lt;/source&gt;
                          &lt;target&gt;1.8&lt;/target&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;${spring-boot.version}&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;repackage&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                      &lt;artifactId&gt;jaxb2-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;1.6&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;xjc&lt;/id&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;xjc&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                      &lt;configuration&gt;
                          &lt;schemaDirectory&gt;${project.basedir}/src/main/resources/&lt;/schemaDirectory&gt;
                          &lt;outputDirectory&gt;${project.basedir}/src/main/java&lt;/outputDirectory&gt;
                          &lt;clearOutputDir&gt;false&lt;/clearOutputDir&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt; &lt;/project&gt;
  </code></pre>