# Maven specific controls

This is a list of system flags that can be used to request specific Maven behaviours. Please refer to the parent section to learn how to specify them to the client.

`maven.profile=<profile_name>`&#x20;

The profile that Maven will use while executing the scan. Please note that this will also cause an automatic change in the branch name, which will be now called branch-profile\_name

`maven.binary=/path/to/mvn`

Allows specifying the exact location of the Maven binary. It's not advisable however to use this property: please use the standard MAVEN\_HOME variable to specify where Maven is located.

`maven.include.all=true`

This will force the detection of all direct dependencies. Normally maven is asked for a dependency tree, and dependencies are collected only from such tree. If this flag is specified, all pom files will be examined to search any dependency not listed, such as, for example, internal dependencies used in plugins such as `jetty:run`which are not reported in the tree, as they are not in any application scope (those will be as a matter of fact listed with scope "`other`").

`maven.extra.parameters=-Dmaven.repo.local=/path/to/repo`

This will allow to directly specify raw parameters that will be included in every maven command issued by the client.


---

# 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://docs.meterian.io/the-client/command-line-parameters/specific-controls/maven-specific-controls.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.
