mavenExists

Returns true when a Maven artifact is in Lucee's local Maven cache. It doesn't contact any remote repository.

mavenExists(groupId [, artifactId] [, version]) → returns boolean

This function requires Lucee 7.1.0.98 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

groupId string
Required

The Maven group ID, or a group:artifact or group:artifact:version string when it is the only argument.

artifactId string

The Maven artifact ID.

version string

The version. When omitted, any cached version counts.

Examples
Sample code invoking the mavenExists function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub