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.

Parameters accepted as nested elements

ClassPathElement compile ...

Specify libraries that are required at compile time but not at run time.

ClassPathElement required ...

Specify libraries that are required at compile time and at run time.

ClassPathElement runtime ...

Specify libraries that are required at run time.

FileList compilefiles ...

Specify libraries that are required at compile time but not at run time.

FileList requiredfiles ...

Specify libraries that are required at compile time and at run time.

FileList runtimefiles ...

Specify libraries that are required at run time.

Path compilepath ...

Specify libraries that are required at compile time but not at run time.

Path requiredpath ...

Specify libraries that are required at compile time and at run time.

Path runtimepath ...

Specify libraries that are required at run time.

ClassPath ...

Specify additional source trees and required libraries using a nested or referenced element.

Dependency ...

Specify a dependence on an artifact using a Maven Resolver Dependency.