mvn Verified current stable Not installed? Build Tools

Mvn / Generate Project Website

Generate Project Website

Use 'mvn site' to generate a project website from your Maven project configuration and documentation.

$
Terminal
mvn site

When To Use

Generate a website for your Maven project using its configuration and documentation.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
[INFO] --- maven-site-plugin:3.9.1:site (default-site) @ my-project ---
[INFO] Building site: /path/to/my-project/target/site
[INFO] [INFO] Site generated: file:/path/to/my-project/target/site/index.html

Command Breakdown

What each part is doing

mvn
Base Command
The executable that performs this operation. Here it runs Mvn before the shell applies any redirect operators.

How To Run

Execution path

  1. Step 1

    Navigate to your Maven project directory.

  2. Step 2

    Run the command 'mvn site'.

  3. Step 3

    Open the generated site in your browser.

Alternative Approaches

Comparable commands in other tools

Alternative build tools tools for the same job.