Main Tutorials

How to generate a documentation site for your Maven based project

In Maven, you can use “mvn site” to generate a documentation site for your project information.


mvn site

The generated site is under your project “target/site” folder.

mvn site example

See a list of files generated via “mvn site” command.

files generated by mvn site

A sample of documentation page.

webpage generated by mvn site
Note
Personally, i do not like this feature much, because it didn’t bring much benefits, who want to know the project information?

About Author

author image
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

Subscribe
Notify of
1 Comment
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Satish Suresh
9 years ago

Hello,
I have a problem generating pdf . I am able able to generate a sample pdf that was generated from docs.fo file . But the changes i made in docs.fo file are not getting reflected in the pdf.

Could somebody please help .