The aim of this project is to create a bridge between Hippo CMS and Konakart.
Konakart uses ant to build the entire project. The librairies are not available on any Maven repositories. The project Konakart Dependency has been created to import into your local m2 repo the librairies.
The following steps need to be executed:
- Clone the project
- cd konakart-dependency
- run mvn install
- Create a new project using the latest version of the artifact. Currently tested with the version 1.05.06
- Add the following conf
<dependencies>
...
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.18</version>
</dependency>
...
</dependencies>
<profile>
<id>cargo.run</id>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.18</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
...
<configuration>
<container>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
...
</container>
</profile>
- Add a copy of the konakart.properties and the konakart_app.properties file under src/main/resources
- Add the following lines into the pom.xml file
<dependency>
<groupId>org.onehippo.forge.konakart</groupId>
<artifactId>hippo-addon-konakart-cms</artifactId>
<version>1.00.00-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.onehippo.forge.konakart</groupId>
<artifactId>hippo-addon-konakart-repository</artifactId>
<version>1.00.00-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
- Add a copy of the konakart.properties and the konakart_app.properties file under src/main/resources
- Add the following lines into the pom.xml file
<dependency>
<groupId>org.onehippo.forge.konakart</groupId>
<artifactId>hippo-addon-konakart-hstclient</artifactId>
<version>1.00.00-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
- Create a new file named //konakart-hst-configuration.xml// under resources/META-INF/hst-assembly.overrides to add the konakart Valve
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<import resource="classpath:/org/onehippo/forge/konakart/hst/konakart-hst-configuration.xml"/>
</beans>
- Add in the web.xml of your site the following value to context parameter hst-beans-annotated-classes (note that the values are comma separated):
<context-param>
<param-name>hst-beans-annotated-classes</param-name>
<param-value>
classpath*:org/onehippo/forge/konakart/hst/beans/**/*.class
</param-value>
</context-param>
- Add the following database configuration to the context.xml file
<!-- Hippo Konakart configuration-->
<Resource
name="jdbc/konakart" auth="Container" type="javax.sql.DataSource"
maxActive="20" maxIdle="10" minIdle="2" initialSize="2" maxWait="10000"
testOnBorrow="true" validationQuery="select 1 from dual"
poolPreparedStatements="true"
username="konakart" password="konakart"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/konakart?zeroDateTimeBehavior=convertToNull&autoReconnect=true&characterEncoding=utf8" />
- You need to update the following node with your needs. "/konakart:konakart/konakart:stores/store1"
- Update contentroot
- Update galleryroot