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?

mkyong

Founder of Mkyong.com, passionate Java and open-source technologies. If you enjoy my tutorials, consider making a donation to these charities.

1 Comment
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Satish Suresh
11 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 .