Forcing Maven2 to download source jars to local repository
I have my company dependencies (including non-FOSS third party stuff) in a Nexus repository, including source jars (downloaded with mvn dependency:resolve
), where available.
I would like to have the source jars (and javadoc jars) download to my local repository (~/.m2/repository
) so that I can go "offline".
I tried various combinations of mvn dependency:resolve dependency:go-offline -Dclassifier=sources
, but it does not seem to copy them to m开发者_开发知识库y local repository.
Thanks.
Did you try:
mvn dependency:sources
精彩评论