Search code examples
javamavenjavadocm2eclipse

How to generate java doc and sources for a library created by me using maven


This might be small question but I am not able to find answer to it. I wrote a library called Utilities and used java doc style comments. Using maven (m2e plugin in eclipse). I am using maven install option. I am getting a jar file and i am pushing the jar file to a central repository and reusing the same library in another project. I am able to use the lib and complete my project successfully but when I do ctrl click I am not able to see the library code from my project. I am also not able to see the arguments description when i hover my mouse on the methods.

I know that it is because My project is not finding sources and java doc .

So How can i generate sources , java doc for my library and attach them to my project using maven.

Thanks


Solution

  • See: