Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven: Can I speed up mvn site?

Tags:

maven

apt

Is there a quicker way to generate a site for maven for preview?

Background:

I'm using mvn site to generate a website which includes documentation for our project. I'm using the the apt format, which is simple, and very few mistakes are actually made, but I do want feedback after adding large amount of content so I don't have to spend too much time searching for syntax errors.

The problem is the site takes about 2 minutes to generate each time, and I would like quicker feedback then this for how the site looks and if I made any mistakes while typing up the docs. This isn't a huge issue but, the situation could certainly be improved.

Also, in order to help me out I'm using vim with syntax highlighting and if I need to get a quick preview on something there was a nice plug-in for eclipse that allows me to preview whether or not my apt is working correctly (of course, it's not the same as what is generated by maven, but it's close enough).

I'm open to any other suggestions, but generating a quick preview with maven would be the best option for productivity.

like image 495
Derek Litz Avatar asked Oct 11 '22 16:10

Derek Litz


1 Answers

Configure the 'reporting' section to turn off what you don't want. Dependency analysis, for example, takes a long time. Look at the doc for the project-info-reports-plugin.

like image 197
bmargulies Avatar answered Nov 02 '22 13:11

bmargulies