如何让Eclipse从我的类中显示javadoc,而不必在jar中包含源 [英] How do I get Eclipse to show the javadoc from my classes without including sources in the jar

查看:158
本文介绍了如何让Eclipse从我的类中显示javadoc,而不必在jar中包含源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

我正在建立jar, div>

你的构建过程是什么? Maven释放过程实际上生成3个jar,一个包含编译的类,一个包含源,一个包含javadoc。您应该能够自定义POM以防止发送源jar,任何使用Maven管理依赖关系的用户都将自动获取javadoc,如果它们声明了对jar的依赖(并且在eclipse maven插件中启用了javadoc下载)。


I'm building jars where I want to package them without sources but I would like the javadoc to come up for developers in eclipse.

解决方案

What is your build process? The Maven release process actually generates 3 jars, one containing the compiled classes, one with sources and one with javadocs. You should be able to customize the POM to prevent distribution of the source jar, and anyone using Maven to manage dependencies will automatically get the javadoc if they declare a dependency on your jar (and have javadoc downloading turned on in the eclipse maven plugin).

这篇关于如何让Eclipse从我的类中显示javadoc,而不必在jar中包含源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆