Configure references to Maven from a Project Object Model (POM) file, pom.xml, to reference and use the online versions of the CILs from your Java web application.
Procedure
- If your web application does not yet have a POM file, following the documentation found at the Apache Maven website (http://maven.apache.org) to create one.
- Open your (new or existing) pom.xml file for editing.
- Ensure that the file contains the following:
<dependency>
<groupId>com.sdl.web</groupId>
<artifactId>cil</artifactId>
<version>VERSION</version>
<type>pom</type>
</dependency>
where
VERSION is the name of a subdirectory located at the URL
https://oss.sonatype.org/content/groups/public/com/sdl/web/cil/, indicating a version of the CIL. Set
version to
SNAPSHOT for the latest snapshot (pre-release) version of the CILs, or a version number for a stable version. For
Tridion Sites 9.1, select
11.1.
Note: Snapshot CILs have all the latest performance and stability fixes in place and are liable to be updated at any time with additional bug fixes and improvements, without notice. Conversely, stable CILs have had more extensive test coverage. Whichever type of release you select, SDL recommends that you always test the artifacts to your satisfaction before putting them in production.
- Save and close pom.xml.
- Restart your web application.