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` or `mavenInfo` 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.
Lucee Function Reference
mavenexists()
Example
mavenexists(string groupId,[string artifactId,[string version]]):boolean
Category
maven,classloading,dependencies,jars
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
| Name | Type | Required | Description |
|---|---|---|---|
| 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. |