# MavenOptions

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.Java](/reference/api/csharp/communitytoolkit.aspire.hosting.java.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/MavenOptions.cs)

Represents the options for configuring a Maven build step.

## Definition

```csharp
namespace Aspire.Hosting;

public sealed class MavenOptions
{
    // ...
}
```

## Constructors

- [MavenOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.java/mavenoptions/constructors.md#constructor)

## Properties

- [Args](/reference/api/csharp/communitytoolkit.aspire.hosting.java/mavenoptions/properties.md#args) : `string[]` `get; set` -- Gets or sets the arguments to pass to the command. Default is "--quiet clean package".
- [Command](/reference/api/csharp/communitytoolkit.aspire.hosting.java/mavenoptions/properties.md#command) : `string` `get; set` -- Gets or sets the command to execute. Default is "mvnw".
- [WorkingDirectory](/reference/api/csharp/communitytoolkit.aspire.hosting.java/mavenoptions/properties.md#workingdirectory) : `string?` `get; set` -- Gets or sets the working directory to use for the command. If null, the working directory of the current process is used.
