Generally, due to the reason for the spread:
If you save separate binary files and sources, you can download only what you need.
For example:
myproject-api.jar and myproject-impl.jarmyproject-api-src.jar and myproject-impl-src.jarmyproject-api-docs.zip and myproject-impl-docs.zip
M2eclipse - Maven for Eclipse can now download sources automatically
mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
Now it can also generate the correct pom to prevent the source or javadoc jar from spreading when someone declares a dependency on your jar.
OP comments:
also cannot imagine that download size is a problem (I mean that in 2010 a 100k pair should not be a problem).
Well, actually this (i.e. size) is a problem.
Maven already suffers from the "download half the Internet at first build" syndrome.
If it also downloads sources and / or javadocs, it becomes really tedious.
In addition, the βdistributionβ aspect includes deployment : on a webapp server , there is no real advantage to deploying banners with sources in it .
Finally, if you really need to associate sources with binaries, this Maven SO question can help .
VonC May 22 '10 at 13:50 2010-05-22 13:50
source share