简体   繁体   English

Maven:我可以加速mvn网站吗?

[英]Maven: Can I speed up mvn site?

Is there a quicker way to generate a site for maven for preview? 是否有更快的方法为maven生成预览网站?

Background: 背景:

I'm using mvn site to generate a website which includes documentation for our project. 我正在使用mvn网站生成一个网站,其中包含我们项目的文档。 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. 我正在使用apt格式,这很简单,实际上很少犯错,但我确实想在添加大量内容后得到反馈,所以我不必花太多时间来搜索语法错误。

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. 问题是网站每次生成大约需要2分钟,我想更快地反馈一下这个网站的外观,以及我在输入文档时是否犯了任何错误。 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). 另外,为了帮助我,我正在使用带有语法高亮的vim,如果我需要快速预览一些东西,那么有一个很好的eclipse插件可以让我预测我的apt是否正常工作(当然,它与maven生成的不一样,但它足够接近)。

I'm open to any other suggestions, but generating a quick preview with maven would be the best option for productivity. 我对任何其他建议持开放态度,但使用maven生成快速预览将是提高工作效率的最佳选择。

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. 查看project-info-reports-plugin的doc。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM