Type classpath
Specify Java libraries required for compilation and/or inclusion in a library or application.
Java libraries (JAR files) may be identified as files (using FileList-based nested elements), by library name, by Maven coordinates, or using nested Maven Resolver dependencies.
A library name is the name of the JAR file without the .jar extension.
Named libraries are located using a search path.
Maven coordinates do not need to specify versions. Preferred versions of Maven artifacts may be specified
using the use element.
References
| Reference | Description | Type |
| lib.path | A Path with this ID defines a default search path for libraries, if no search path is defined. | Path |
Parameters accepted as attributes
| Attribute | Description | Type | Required? |
| searchPath | Specify the search path to be used when looking for dependent JARs identified by library name. | Path |
No. If no search path is specified, the path with ID lib.path is used (if defined).
|
| searchPathRef | Specify the ID of a search path to be used when looking for dependent JARs identified by library name. | Reference |
No. If no search path is specified, the path with ID lib.path is used (if defined).
|
| compile | Specify Java libraries that are required only for compilation. Libraries may be specified using names or artifact coordinates (versions not required). | String | No. |
| required | Specify Java libraries that are required for compilation and execution. Libraries may be specified using names or artifact coordinates (versions not required). | String | No. |
| runtime | Specify Java libraries that are required for execution, but not for compilation. Libraries may be specified using names or artifact coordinates (versions not required). | String | No. |