title: package org.springframework.web.bind.annotation does not exist even though it's defined in POM
body: <p>So I have this code</p>
  
  <pre><code>import org.springframework.web.bind.annotation.GetMapping;
  </code></pre>
  
  <p>And I already have the following in my POM file</p>
  
  <pre><code>&lt;packaging&gt;war&lt;/packaging&gt;
      &lt;properties&gt;
          &lt;spring.version&gt;4.3.0.RELEASE&lt;/spring.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  </code></pre>
  
  <p>Yet when I built it ends up complaining package org.springframework.web.bind.annotation does not exist</p>
  
  <p>Why? I already added spring web as a dependency. What am I doing wrong?</p>