[ http://jira.codehaus.org/browse/MNG-1605?page=comments#action_52055 ]
fabrizio giustina commented on MNG-1605: ---------------------------------------- > Source downloading, even (especially?) for sources that don't exist, is very > time consuming. Time consuming only for sources that don't exist in the local repository. Once a source jar has been downloaded, the eclipse plugin will never spend time anymore for checking remote repositories. I don't think adding a dependency-specific flag could be a good solution, the eclipse.downloadSources should remain a global flag. You have the following options: - don't set eclipse.downloadSources to true and only sources in the local repo will be used (note that this is broken in the current release, but it's how it's expected to work) - if you want to download sources for artifact run eclipse:eclipse with eclipse.downloadSources=true once a while. If a source jar is available on the remote repo it will be downloaded, and it will be used in future without the need for additional checks. - You can manually add source jars to your local repositories for dependencies that don't exist in the remote repo. The eclipse plugin will use those and will not try do download them anymore. Also note that recently a good number of source jars have been uploaded to the m2 repository, and the number of sources available is expected to grow. Said that, I would like to close this issue as a won't fix. Other thoughts? > Allow eclipse source to be specified at the dependency level > ------------------------------------------------------------ > > Key: MNG-1605 > URL: http://jira.codehaus.org/browse/MNG-1605 > Project: Maven 2 > Type: New Feature > Components: maven-eclipse-plugin > Versions: 2.0 > Reporter: Barry Kaplan > > > Many (most?) projects do not have sources uploaded. And in any case, most > projects only need a small subset of the sources. Source downloading, even > (especially?) for sources that don't exist, is very time consuming. > Therefore, it would be nice to specify this eclipse plugin specific option as > the dependency level. Maybe something like: > <dependency> > <groupId>backport-util-concurrent</groupId> > <artifactId>backport-util-concurrent</artifactId> > <version>2.0_01_pd</version> > <scope>runtime</scope> > <properties> > <property name="eclipse.downloadSources" value="true"/> > </properties> > </dependency> > (For this to be general, it would of course require a much different model > than the simple plugin-level property injection. ) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]