Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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:

<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>

Slice CQ Addons

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

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.

<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>
  • No labels