# MavenExists()

Checks whether a Maven artifact is present in Lucee's local maven cache directory.

This is a cheap filesystem-only predicate — it does not contact any remote repository and does not resolve transitive dependencies. 

Useful as a quick check or audit, or before calling [MavenLoad()](mavenload.md) or [MavenInfo()](maveninfo.md) to avoid re-resolving an artifact that is already available locally.

Accepts either three separate arguments (groupId, artifactId, version) or a single gradle-style coordinate string (`"group:artifact"` or `"group:artifact:version"`). If the version is omitted, returns true when any version of the coord is cached locally.

**Introduced:** 7.1.0.98

```
MavenExists( groupId=string, artifactId=string, version=string );
```

**Returns:** boolean

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| groupId | string | Yes | The Maven group identifier, or a gradle-style coordinate string `"group:artifact"` / `"group:artifact:version"` when passed as the only argument. |  |
| artifactId | string | No | The Maven artifact identifier. Omit when passing a gradle-style coordinate as the first argument. |  |
| version | string | No | The specific version to check for. If omitted, the function returns true when any cached version of the coord is present. |  |

# Examples

Gradle-style coordinate, specific version:

```cfml
mavenExists( "org.apache.poi:poi-ooxml:5.2.5" );
```

Three-argument form:

```cfml
mavenExists( "org.apache.poi", "poi-ooxml", "5.2.5" );
```

Any version of the coord is cached:

```cfml
mavenExists( "org.apache.poi:poi-ooxml" );
// or
mavenExists( "org.apache.poi", "poi-ooxml" );
```







# Categories

[Java](../../categories/java.md)

# See Also

[MavenExport()](mavenexport.md), [MavenImport()](mavenimport.md), [MavenInfo()](maveninfo.md), [MavenLoad()](mavenload.md)