简体   繁体   English

使用Eclipse Maven插件创建站点

[英]Creating a Site Using Eclipse Maven Plugin

I would like to create a 'site' containing test reports for my Maven Java project. 我想创建一个包含我的Maven Java项目测试报告的“站点”。 However, all the online resources that I found were talking about the command 'mvn site'. 但是,我发现的所有在线资源都在谈论命令'mvn site'。 I do work on Windows, though, therefore I would like to avoid any interaction with its console. 我在Windows上工作,因此我想避免与其控制台进行任何交互。

Can I do it using solely the Eclipse Maven Plugin? 我可以单独使用Eclipse Maven插件吗? If I want to tell Maven to build my project, I can right-click it and then choose 'Run As' 'Maven Install'. 如果我想告诉Maven构建我的项目,我可以右键单击它然后选择“Run As”Maven Install'。 Is there something similar for generating sites? 生成网站有类似的东西吗?

Thank you all in advance! 谢谢大家!

Why the hate for specifically the Windows command prompt? 为什么特别讨厌Windows命令提示符? What has it done to you to deserve a cold shoulder? 值得冷落的是你做了什么?

In any case and more seriously: Eclipse allows you to define run configurations yourself. 在任何情况下,更严重的是:Eclipse允许您自己定义运行配置。 run -> run configurations. 运行 - >运行配置。 Under "maven build" you can add a new configuration to do a mvn site. 在“maven build”下,您可以添加新配置来执行mvn站点。 This page gives an idea by demonstrating how to do a clean install: 该页面通过演示如何进行全新安装来提供一个想法:

http://books.sonatype.com/m2eclipse-book/reference/running-sect-running-maven-builds.html http://books.sonatype.com/m2eclipse-book/reference/running-sect-running-maven-builds.html

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

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