# MavenBuildResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.Java](/reference/api/csharp/communitytoolkit.aspire.hosting.java.md)
- Type: [MavenBuildResource](/reference/api/csharp/communitytoolkit.aspire.hosting.java/mavenbuildresource.md)
- Kind: `Constructors`
- Members: `1`

A resource that represents a Maven build step.

## MavenBuildResource(string, string, string)

- Name: `Constructor(string, string, string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/MavenBuildResource.cs#L10)

A resource that represents a Maven build step.

```csharp
public class MavenBuildResource
{
    public MavenBuildResource(
        string name,
        string wrapperScript,
        string workingDirectory)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `wrapperScript` (`string`)
  The full path to the Maven wrapper script.
- `workingDirectory` (`string`)
  The working directory to use for the command.
