# Site

Maven supports its own documentation generation tool, the [Maven site](https://maven.apache.org/plugins/maven-site-plugin/). Which handled through the plugin of the same name.

To keep the project self contained, and take full advantage of Maven, it is recommended using this for generating the project's documentation.

## Command

As some reports will require test results it is recommended running all the tests before generating the site:

```bash
mvn verify site
```

To generate a test version of the site, useful for multimodule projects:

```bash
mvn verify site site:stage
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bernardo.gitbook.io/development-docs-java/maven/site.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
