开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜