Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To use Slice CQ Addons in your project, you have to perform a simple setup.

Maven configuration

Dependencies

In case you want support for CQ 5.5, include the following Maven dependencies into your project:

Code Block
xml
xml
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-cq55</artifactId>
    <version>1.0.0</version>
</dependency>
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-cq55-taglib</artifactId>
    <version>1.0.0</version>
</dependency>
Info
titleSlice CQ Addons

If you want use Slice CQ Addons dedicated for other CQ version, just update artifactId, e.g. use slice-cq56 for CQ v5.6.

Info

Depending on your project you might want to set the scope of the dependencies to provided.

Repositories

Slice is deployed to Maven central repository which means you don't have to specify any repositories to fetch id. However, you might want to add the following repositories to fetch CQ dependencies or other OSGi bundles.

Code Block
xml
xml
<repositories>
    <repository>
        <id>adobe-public-releases</id>
        <name>Adobe Public Repository</name>
        <url>http://repo.adobe.com/nexus/content/groups/public</url>
        <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
    <repository>
        <id>com.springsource.repository.bundles.external</id>
        <name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
        <url>http://repository.springsource.com/maven/bundles/external/</url>
    </repository>
</repositories>