Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As @Will Iverson says, recent m2eclipse plugins can download sources automatically, either ahead-of-time, or on-demand. The m2eclipse has been able to do this for quite a long time.</p> <p>If this is not working:</p> <ul> <li>check you have an up-to-date plugin (and an up-to-date Eclipse!), </li> <li>look at the way that the plugin is configured, </li> <li>check Eclipse's effective web proxy configuration,</li> <li>check <code>~/.m2/settings.xml</code> to see if you are using a maven proxy repository,</li> <li>if you are using a proxy repository, check the repository configs to see if it is serving source JARs.</li> </ul> <hr> <blockquote> <p>If I understand, when I add a dependency, you're suggesting that I should do m2Maven > Update Dependencies, m2Maven > Download JavaDoc, m2Maven > Download Sources, and this operation, despite being more inconvenient of calling "mvn eclipse:eclipse", will preserve my manual changes, instead of overwriting them.</p> </blockquote> <ol> <li><p>If you are using m2eclipse, you should need to use "mvn eclipse:eclipse". Instead you just import the maven project using (for example) File > Import > Maven > Existing Maven Project.</p></li> <li><p>I don't think this will destroy your existing hand-created project settings ... assuming that you haven't accidentally checked them into SCM or something.</p></li> <li><p>If you are concerned about the possibility of losing settings, make a backup copy of your workspace; e.g. <code>cp -r ...</code> or <code>tar cf ...</code></p></li> <li><p>Maven allows you to import direct from SCM in one step. That's surely <strong>more</strong> convenient than <code>mvn eclipse:eclipse</code> ... and it gives you the benefits of the m2eclipse plugin.</p></li> </ol> <hr> <blockquote> <p>The problem, I think is that spring sources are present and they are served, but they are all in one dependency, other dependencies don't have source attachments, however their sources is in the "spring" dependency. </p> </blockquote> <p>Ah. I see.</p> <p>I don't think there's much you (or m2eclipse) can do about that. That's arguably a bug in the Spring 2.0.x POM files or in the dependent POM files. Certainly, later versions of Spring (2.5.x and 3.0.x) don't have that problem.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload