mavenImport

Reads a pom.xml file and downloads each listed dependency into Lucee's local Maven cache. Returns a query of what was resolved.

mavenImport(pomPath [, includeTransitive] [, includeOptional]) → returns query

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

Argument Reference

pomPath string
Required

The path to the pom.xml file.

includeTransitive boolean
Default: false

When true, also resolves the dependencies of each dependency.

includeOptional boolean
Default: false

When true, also resolves optional dependencies. Only used when includeTransitive is true.

Examples
Sample code invoking the mavenImport function

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

Fork me on GitHub