Eclipse: add javadoc

后端 未结 6 628
眼角桃花
眼角桃花 2020-12-31 12:47

How can I generally add javadoc in eclipse for different packages.

As an example:
I want to add all the javadoc for hibernate in eclipse, but I don\'t know how.

相关标签:
6条回答
  • 2020-12-31 13:03

    Another option is to use maven/m2eclipse to manage your dependencies.

    It's way overkill if you have the problem for 1 or 2 libraries, but worth considering if you have a dozen.

    Most open source projects publish both the jar and the -src.jar artifacts, and m2eclipse can go and download automatically the source for you.

    0 讨论(0)
  • 2020-12-31 13:03

    Right-click on the hibernate jar in the package explorer, then choose "Properties", and fill the "javadoc location" field.

    enter image description here

    0 讨论(0)
  • 2020-12-31 13:17

    Try viewing the properties of your project to add a JavaDoc Location. enter image description here

    0 讨论(0)
  • 2020-12-31 13:22

    In Eclipse Kepler (some years after the question, admittedly), there's a Download JavaDoc entry on the Maven submenu. This just downloaded the Spring JavaDoc (and the status message said "Downloading Javadoc and sources", but I haven't checked that). (There's also a Download Sources entry on that submenu.)

    Hope this helps.

    0 讨论(0)
  • 2020-12-31 13:23

    I am using Eclipse Helios x64 in Windows 7 x64.

    In your project properties:

    Project Properties

    0 讨论(0)
  • 2020-12-31 13:23

    Run

    mvn eclipse:eclipse -DdownloadJavadocs=true -DdownloadSources=true
    

    and refresh your eclipse module. Voila! No need for any eclipse plugins (unless you are already using them).

    0 讨论(0)
提交回复
热议问题