Setting up CQ Addons - 3.2
To use Slice CQ Addons in your project, you have to perform a simple setup.
Maven configuration
Dependencies
If you want to use Slice CQ Addons dedicated for CQ 5.6 or 5.6.1, include the following Maven dependencies in your project.
<dependency> <groupId>com.cognifide.slice-addon</groupId> <artifactId>slice-cq56</artifactId> <version>1.0.1</version> </dependency> <dependency> <groupId>com.cognifide.slice-addon</groupId> <artifactId>slice-cq56-taglib</artifactId> <version>1.0.1</version> </dependency>
In case you want support for CQ 5.5, use the following dependencies:
<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>
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>