Building a site using the Eclipse Maven Plugin

I would like to create a "site" containing test reports for my Maven Java project. However, all the online resources I found spoke of the "mvn site" command. However, I am on Windows, so I would like to avoid interacting with the console.

Can I do this using the Eclipse Maven Plugin exclusively? If I want to tell Maven to build my project, I can right-click it and then select Run As Maven Install. Is there something similar for generating websites?

Thanks everyone in advance!

+3


source to share


1 answer


Why hate specifically for the Windows command line? What have you done to deserve a cold shoulder?

Anyway, and more seriously: Eclipse allows you to define launch configurations yourself. run -> run. In the "maven build" section, you can add a new configuration to build the mvn site. This page provides an introduction by demonstrating how to perform a clean install:



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

+2


source







All Articles