mavenimport()
Parses a `pom.xml` and resolves each declared `` into Lucee's local maven cache, fetching any that are not already present.
By default only the literal dependencies listed in the pom are resolved - pairs symmetrically with `mavenExport`, which writes the full cache contents as a flat list.
Pass `includeTransitive = true` to also walk the dependency tree for each entry (same behaviour as `mavenLoad`).
Returns a query with the same shape as `mavenInfo`, showing what was resolved.
Example
mavenimport(string pomPath,[boolean includeTransitive]):query
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 |
Default Value |
Description |
| pomPath |
string |
Yes |
|
Filesystem path to a pom.xml file to import.
|
| includeTransitive |
boolean |
No |
false |
If false (default), only the literal `` entries in the pom are resolved. If true, the full transitive dependency tree is resolved for each entry.
|