<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.exoplatform</groupId>
    <artifactId>exo.parent</artifactId>
    <version>7.1</version>
  </parent>
  <groupId>org.exoplatform.ks</groupId>
  <artifactId>ks</artifactId>
  <version>2.2.12</version>
  <packaging>pom</packaging>
  <name>eXo Knowledge Suite</name>
  <description>eXo Knowledge Suite (KS) is a suite of collaborative applications oriented to knowledge management. It not only holds on-line discussions and posts user generated content but also answers the most frequently asked questions about sites/services.</description>
  <url>http://wiki.exoplatform.org/xwiki/bin/view/KS/</url>
  <scm>
   <connection>scm:git:git://github.com/exoplatform/ks.git</connection>
   <developerConnection>scm:git:git@github.com:exoplatform/ks.git</developerConnection>
   <url>http://fisheye.exoplatform.org/browse/ks</url>
  </scm>
  <issueManagement>
    <system>jira</system>
    <url>https://jira.exoplatform.org/browse/KS</url>
  </issueManagement>
  <ciManagement>
    <system>hudson</system>
    <url>https://ci.exoplatform.org/job/ks-2.2.x-ci/</url>
  </ciManagement>
  <properties>
    <org.exoplatform.kernel.version>2.3.10-GA</org.exoplatform.kernel.version>
    <org.exoplatform.core.version>2.4.10-GA</org.exoplatform.core.version>
    <org.exoplatform.ws.version>2.2.10-GA</org.exoplatform.ws.version>
    <org.exoplatform.jcr.version>1.14.10-GA</org.exoplatform.jcr.version>
    <org.exoplatform.portal.version>3.2.7-PLF</org.exoplatform.portal.version>
    <exo.tool.framework.junit.version>1.2.0</exo.tool.framework.junit.version>
    <org.exoplatform.exopackage.version>1.1.4</org.exoplatform.exopackage.version>
    <org.chromattic.version>1.1.2</org.chromattic.version>
    <!--commons dependencies -->
    <org.exoplatform.commons.version>1.1.11</org.exoplatform.commons.version>
    <!-- eXo extended service -->
    <org.exoplatform.social.version>1.2.12</org.exoplatform.social.version>
    <!-- 3rd parties -->
    <org.codehaus.swizzle.version>1.6.1</org.codehaus.swizzle.version>
    <com.xpn.xwiki.platform.plugins.version>1.0</com.xpn.xwiki.platform.plugins.version>
    <mysql-connector-java.version>5.1.18</mysql-connector-java.version>
    <org.jsecurity.version>0.9.0</org.jsecurity.version>
    <org.aspectj.version>1.6.10</org.aspectj.version>
    <ehcache.version>1.6.0</ehcache.version>
    <juel.version>2.1.2</juel.version>
    <org.testng.version>5.10</org.testng.version>
    <org.hibernate.version>3.3.2.GA</org.hibernate.version>
    <commons-collections.version>3.2.1</commons-collections.version>
    <org.jboss.version>2.2.9.GA</org.jboss.version>
    <org.jbossxb.version>2.0.1.GA</org.jbossxb.version>
    <commons-chain.version>1.2</commons-chain.version>
    <commons-logging.version>1.0.4</commons-logging.version>
    <commons-httpclient.version>3.0</commons-httpclient.version>
    <org.apache.commons.version>3.1</org.apache.commons.version>
    <org.apache.httpcomponents.version>4.0</org.apache.httpcomponents.version>
    <com.google.guava.version>r07</com.google.guava.version>
    <javax.servlet.servlet-api.version>2.5</javax.servlet.servlet-api.version>
    <javax.portlet.portlet-api.version>2.0</javax.portlet.portlet-api.version>
    <javax.mail.mail.version>1.4.4</javax.mail.mail.version>
    <javax.xml.bind.jaxb-api.version>2.1</javax.xml.bind.jaxb-api.version>
    <javax.xml.stream.stax-api.version>1.0</javax.xml.stream.stax-api.version>
    <javax.ws.rs.jsr311-api.version>1.0</javax.ws.rs.jsr311-api.version>
    <javax.jcr.api.version>1.0</javax.jcr.api.version>
    <javax.resource.connector-api.version>1.5</javax.resource.connector-api.version>
    <org.jibx.jibx-run.version>1.2.1</org.jibx.jibx-run.version>
    <javax.activation.activation.version>1.1</javax.activation.activation.version>
    <org.slf4j.version>1.5.8</org.slf4j.version>
    <xml-apis.version>1.0.b2</xml-apis.version>
    <pull-parser.version>2</pull-parser.version>
    <rome.version>1.0</rome.version>
    <picocontainer.version>1.1</picocontainer.version>
    <commons-io.version>1.4</commons-io.version>
    <dom4j.version>1.6.1</dom4j.version>
    <junit.version>3.8.2</junit.version>
    <xpp3.version>1.1.4c</xpp3.version>
    <mockito.version>1.8.1</mockito.version>
    <jtidy.version>4aug2000r7-dev</jtidy.version>
    <org.mortbay.jetty.cometd-bayeux.version>6.1.11</org.mortbay.jetty.cometd-bayeux.version>
    <org.mortbay.jetty.cometd-api.version>0.9.20080221</org.mortbay.jetty.cometd-api.version>
    <org.mortbay.jetty.jetty-util.version>6.1.11</org.mortbay.jetty.jetty-util.version>
    <selenium-java-client-driver.version>1.0-beta-1</selenium-java-client-driver.version>
    <c3p0.version>0.9.1.2</c3p0.version>
    <net.oauth.version>20080621</net.oauth.version>
    <cglib.version>2.2</cglib.version>
    <commons-dbcp.version>1.2.2</commons-dbcp.version>
    <org.exoplatform.tool.version>1.0.0</org.exoplatform.tool.version>
    <org.javassist.version>3.14.0-GA</org.javassist.version>
    <html-parser.version>1.6</html-parser.version>
    <com.sun.xml.bind.version>2.1.7</com.sun.xml.bind.version>
    <org.jvnet.jaxb2.maven2.version>0.1</org.jvnet.jaxb2.maven2.version>
    <commons-pool.version>1.2</commons-pool.version>
    <asm.version>1.5.3</asm.version>
    <antlr.version>2.7.6rc1</antlr.version>
    <jcr.version>1.0</jcr.version>
    <stax.version>1.0</stax.version>
    <xml-apis.version>1.3.04</xml-apis.version>
    <commons-logging.version>1.0.4</commons-logging.version>
    <commons-lang.version>2.6</commons-lang.version>
    <org.gatein.pc.version>2.3.0-GA</org.gatein.pc.version>
    <org.gatein.shindig.version>2.0.2</org.gatein.shindig.version>
    <org.gatein.wsrp.version>2.1.0-GA</org.gatein.wsrp.version>
    <org.gatein.wci.version>2.1.0-GA</org.gatein.wci.version>
    <org.reflext.version>1.1.0</org.reflext.version>
    <xerces.version>2.9.1</xerces.version>
    <org.hsqldb.version>2.0.0</org.hsqldb.version>
    <quartz.version>1.5.2</quartz.version>
    <nekohtml.version>1.9.14</nekohtml.version>
    <caja.version>r1</caja.version>
    <!-- Begin wiki properties -->
    <maven-compiler-plugin.version>2.3.1</maven-compiler-plugin.version>
    <org.xwiki.platform.version>4.1.3</org.xwiki.platform.version>
    <org.wikimodel.version>2.0.7-SNAP-rev-532</org.wikimodel.version>
    <gwt.version>2.4.0</gwt.version>
    <smartgwt.version>2.5</smartgwt.version>
    <net.sourceforge.htmlcleaner.version>2.2</net.sourceforge.htmlcleaner.version>
    <!--dependencies which Code Macro depends on -->
    <jython-standalone.version>2.5.2-xwiki</jython-standalone.version>
    <pygments.version>1.4-xwiki</pygments.version>
    <org.jdom.version>2.0.2</org.jdom.version>
    <!--column-macro.version>1.1-SNAPSHOT</column-macro.version -->
    <org.suigeneris.version>0.4.2</org.suigeneris.version>
    <ecs.version>1.4.2</ecs.version>
    <cssparser.version>0.9.5</cssparser.version>
    <javax.inject.version>1</javax.inject.version>
    <!--dependencies which org.xwiki.platform:xwiki-core-properties depends on -->
    <javax.validation.version>1.0.0.GA</javax.validation.version>
    <hibernate-validator.version>4.0.0.GA</hibernate-validator.version>
    <!-- End wiki properties -->
    <!--eXo style-->
    <org.exoplatform.doc.doc-style.version>1.0.9</org.exoplatform.doc.doc-style.version>
	<!--Wikbook-->
	<version.wikbook.plugin>0.9.41</version.wikbook.plugin>
  
    <!-- ************** -->
    <!-- Build settings -->
    <!-- ************** -->
    <!-- We enforce Java 6 to build to use Chromattic and APT -->
    <jdk.min.version>1.6</jdk.min.version>
		<!-- config-scm-maven-plugin -->
    <org.apache.maven.scm.version>1.6</org.apache.maven.scm.version>
    <version.release.plugin>2.2.1</version.release.plugin>
    <version.buildnumber.plugin>1.1</version.buildnumber.plugin>
    <!-- maven-release-plugin -->
    <arguments>-Prelease,java-api-compat,pkg-tomcat,arc-tomcat -Dgatein.working.dir=target</arguments>
  </properties>
  <dependencyManagement>
    <!-- TODO : import dependencyManagement of platform, instead of redefining those properties -->
    <dependencies>
      <dependency>
        <groupId>org.exoplatform.kernel</groupId>
        <artifactId>exo.kernel.container</artifactId>
        <version>${org.exoplatform.kernel.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.kernel</groupId>
        <artifactId>exo.kernel.commons</artifactId>
        <version>${org.exoplatform.kernel.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.kernel</groupId>
        <artifactId>exo.kernel.component.common</artifactId>
        <version>${org.exoplatform.kernel.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.jcr</groupId>
        <artifactId>exo.jcr.component.core</artifactId>
        <version>${org.exoplatform.jcr.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.kernel</groupId>
        <artifactId>exo.kernel.component.cache</artifactId>
        <version>${org.exoplatform.kernel.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.jcr</groupId>
        <artifactId>exo.jcr.component.ext</artifactId>
        <version>${org.exoplatform.jcr.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.ws</groupId>
        <artifactId>exo.ws.rest.core</artifactId>
        <version>${org.exoplatform.ws.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.ws</groupId>
        <artifactId>exo.ws.rest.ext</artifactId>
        <version>${org.exoplatform.ws.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.ws</groupId>
        <artifactId>exo.ws.frameworks.json</artifactId>
        <version>${org.exoplatform.ws.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.core</groupId>
        <artifactId>exo.core.component.organization.api</artifactId>
        <version>${org.exoplatform.core.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.core</groupId>
        <artifactId>exo.core.component.security.core</artifactId>
        <version>${org.exoplatform.core.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.commons</groupId>
        <artifactId>exo.platform.commons.comet.service</artifactId>
        <version>${org.exoplatform.commons.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.commons</groupId>
        <artifactId>exo.platform.commons.comet.webapp</artifactId>
        <version>${org.exoplatform.commons.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.component.portal</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.component.resources</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.component.scripting</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.component.common</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.webui.eXo</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.webui.core</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.webui.portal</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.component.test.core</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency> 
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.component.test.jcr</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>       
      <dependency>
        <groupId>org.exoplatform.tool</groupId>
        <artifactId>exo.tool.framework.junit</artifactId>
        <version>${exo.tool.framework.junit.version}</version>
      </dependency>
      <dependency>
        <groupId>org.aspectj</groupId>
        <artifactId>aspectjrt</artifactId>
        <version>${org.aspectj.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>${commons-lang.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>${javax.servlet.servlet-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.portlet</groupId>
        <artifactId>portlet-api</artifactId>
        <version>${javax.portlet.portlet-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.mail</groupId>
        <artifactId>mail</artifactId>
        <version>${javax.mail.mail.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>${javax.xml.bind.jaxb-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.jcr</groupId>
        <artifactId>jcr</artifactId>
        <version>${javax.jcr.api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.ws.rs</groupId>
        <artifactId>jsr311-api</artifactId>
        <version>${javax.ws.rs.jsr311-api.version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-simple</artifactId>
        <version>${org.slf4j.version}</version>
      </dependency>
      <dependency>
        <groupId>xml-apis</groupId>
        <artifactId>xml-apis</artifactId>
        <version>${xml-apis.version}</version>
      </dependency>
      <dependency>
        <groupId>quartz</groupId>
        <artifactId>quartz</artifactId>
        <version>${quartz.version}</version>
      </dependency>
      <dependency>
        <groupId>rome</groupId>
        <artifactId>rome</artifactId>
        <version>${rome.version}</version>
      </dependency>
      <dependency>
        <groupId>picocontainer</groupId>
        <artifactId>picocontainer</artifactId>
        <version>${picocontainer.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>${commons-io.version}</version>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>${junit.version}</version>
      </dependency>
      <dependency>
        <groupId>xpp3</groupId>
        <artifactId>xpp3</artifactId>
        <version>${xpp3.version}</version>
      </dependency>
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-all</artifactId>
        <version>${mockito.version}</version>
      </dependency>
      <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>${org.testng.version}</version>
        <classifier>jdk15</classifier>
		<scope>test</scope>
      </dependency>
      <dependency>
        <groupId>commons-collections</groupId>
        <artifactId>commons-collections</artifactId>
        <version>${commons-collections.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.commons</groupId>
        <artifactId>exo.platform.commons.testing</artifactId>
        <version>${org.exoplatform.commons.version}</version>
      </dependency>
      <dependency>
        <groupId>net.sourceforge.nekohtml</groupId>
        <artifactId>nekohtml</artifactId>
        <version>${nekohtml.version}</version>
      </dependency>
      <dependency>
        <groupId>caja</groupId>
        <artifactId>json_simple</artifactId>
        <version>${caja.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-jdk14</artifactId>
      <version>${org.slf4j.version}</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  
  <profiles>
    <profile>
      <id>java-api-compat</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.jvnet</groupId>
            <artifactId>animal-sniffer</artifactId>
            <version>1.2</version>
            <executions>
              <execution>
                <id>check-java-compatibility</id>
                <phase>compile</phase>
                <goals>
                  <goal>check</goal>
                </goals>
                <configuration>
                  <signature>
                    <groupId>org.jvnet.animal-sniffer</groupId>
                    <artifactId>java1.5</artifactId>
                    <version>1.0</version>
                  </signature>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <dependencies>
              <dependency>
                <groupId>org.apache.apache.resources</groupId>
                <artifactId>apache-source-release-assembly-descriptor</artifactId>
                <version>1.0.2</version>
              </dependency>
            </dependencies>
            <executions>
              <execution>
                <id>source-release-assembly</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
                  <descriptorRefs>
                    <descriptorRef>source-release</descriptorRef>
                  </descriptorRefs>
                  <tarLongFileFormat>gnu</tarLongFileFormat>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <modules>
    <module>component</module>
    <module>web</module>
    <module>eXoApplication</module>
    <module>extension</module>
    <module>demo</module>
    <module>docs</module>
    <module>server/tomcat/patch</module>
    <module>server/jboss/patch-ear</module>
    <module>packaging</module>
    <module>ext/confluence-migration-tool</module>
  </modules>
</project>
