Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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-addon</groupId>
    <artifactId>slice-cq55</artifactId>
    <version>1.0.0</version>
</dependency>
<dependency>
    <groupId>com.cognifide.slice-addon</groupId>
    <artifactId>slice-cq55-taglib</artifactId>
    <version>1.0.0</version>
</dependency>

If you want to use Slice CQ Addons dedicated for other CQ version, just change artifactId value, e.g. for CQ 5.6:

Code Block
xml
xml
<dependency>
    <groupId>com.cognifide.slice-addon</groupId>
    <artifactId>slice-cq56</artifactId>
    <version>1.0.0</version>
</dependency>
<dependency>
    <groupId>com.cognifide.slice-addon</groupId>
    <artifactId>slice-cq56-taglib</artifactId>
    <version>1.0.0</version>
</dependency>
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>