title: Eclipse - scroll to dependencies classes in maven project
body: <p>I have maven project with dependencies, I want to be able to view dependencies classes while viewing code
  I can't drill down to class files of maven dependencies in eclipse when Ctrl+ left mouse click class name , for example <code>@Autowired</code> Spring or <code>@Test</code> of TestNG</p>
  
  <p>I tried all <a href="https://stackoverflow.com/questions/310720/get-source-jar-files-attached-to-eclipse-for-maven-managed-dependencies">answers for Get source jar files attached to Eclipse for Maven-managed dependencies</a></p>
  
  <blockquote>
    <p>Checked Window > Preferences > Maven and checking the "Download Artifact Sources" and "Download Artifact JavaDoc" options</p>
  </blockquote>
  
  <p>Also control-clicking the project in Navigator view and choosing "Maven"-->"Download Sources"</p>
  
  <p>Also with maven goal</p>
  
  <blockquote>
  <pre><code>mvn dependency:sources
  </code></pre>
  </blockquote>
  
  <p>Also Maven -> Update project (and restart eclipse) after changes</p>
  
  <p>But when I click on class as <code>@Test</code> or <code>@Autowired</code> I'm not redirected to class, although I can see class in relevant jar in project's Maven dependencies </p>
  
  <p>I tried adding source files <a href="https://stackoverflow.com/questions/13334766/how-to-set-up-spring-source-code-for-debugging-in-eclipse">manually</a></p>
  
  <blockquote>
    <p>Menu Option Run -> Debug Configurations -> Java Application 
       Provide required inputs in "main" tab
       Add source jar file in source tab</p>
  </blockquote>
  
  <p>What am I missing to be able to drill down to dependency's classes?</p>
  
  <p>I can see classes in Maven dependencies manually:
  <img src="https://i.imgur.com/FpOqYSZ.png" alt=""></p>