Configuring online CILs in your Java web application

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

  1. 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.
  2. Open your (new or existing) pom.xml file for editing.
  3. 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.
  4. Save and close pom.xml.
  5. Restart your web application.