您的位置:首页 > 编程语言 > Java开发

Maven Micro-Tip: Get sources and Javadocs

2012-02-20 23:21 239 查看
Maven Micro-Tip: Get sources and Javadocs | Ted Wise

Maven Micro-Tip: Get sources and Javadocs

January 27th 2010 · Java When you’re using Maven in an IDE you often find the need for your IDE to resolve source code and Javadocs for your library dependencies. There’s an easy way to accomplish that goal.

# mvn dependency:sources
# mvn dependency:resolve -Dclassifier=javadoc
The first command will attempt to download source code for each of the dependencies in your pom file.

The second command will attempt to download the Javadocs.

Maven is at the mercy of the library packagers here. So some of them won’t have source code packaged and many of them won’t have Javadocs.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: