# MavenOptions Properties

- Package: [CommunityToolkit.Aspire.Hosting.Java](/reference/api/csharp/communitytoolkit.aspire.hosting.java.md)
- Type: [MavenOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/mavenoptions.md)
- Kind: `Properties`
- Members: `3`

Represents the options for configuring a Maven build step.

## Args

- Name: `Args`
- Modifiers: `get; set`
- Returns: `string[]`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/MavenOptions.cs)

Gets or sets the arguments to pass to the command. Default is "--quiet clean package".

```csharp
public string[] Args { get; set; }
```

## Command

- Name: `Command`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/MavenOptions.cs)

Gets or sets the command to execute. Default is "mvnw".

```csharp
public string Command { get; set; }
```

## WorkingDirectory

- Name: `WorkingDirectory`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/MavenOptions.cs)

Gets or sets the working directory to use for the command. If null, the working directory of the current process is used.

```csharp
public string? WorkingDirectory { get; set; }
```
