<?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.nuxeo.ecm.platform</groupId>
    <artifactId>nuxeo-services-parent</artifactId>
    <version>5.4.1-HF05</version>
  </parent>

  <groupId>org.nuxeo.ecm.webengine</groupId>
  <artifactId>nuxeo-webengine-parent</artifactId>
  <version>5.4.1-HF05</version>
  <packaging>pom</packaging>
  <name>Nuxeo WebEngine</name>
  <description>
    Nuxeo WebEngine is the lightweight content-centric web framework.
  </description>

  <modules>
    <module>nuxeo-webengine-core</module>
    <module>nuxeo-webengine-ui</module>
    <!-- NXP-5660 - temporary rollback because of Hudson issue -->
    <module>nuxeo-webengine-gwt</module>
    <module>nuxeo-theme-webengine</module>
  </modules>

  <profiles>
    <!-- NXP-5660 - temporary rollback because of Hudson issue <profile> <id>no-osgi</id> 
      <activation> <file> <exists>pom.xml</exists> </file> </activation> <modules> <module>nuxeo-webengine-gwt</module> 
      <module>nuxeo-theme-webengine</module> </modules> </profile> -->
  </profiles>

  <properties>
    <nuxeo.webengine.version>5.4.1-HF05</nuxeo.webengine.version>
    <nuxeo.services.version>5.4.1-HF05</nuxeo.services.version>
    <nuxeo.theme.version>5.4.1-HF05</nuxeo.theme.version>
  </properties>

  <dependencies>
    <!-- needed by APT for annotation processing -->
    <dependency>
      <groupId>org.nuxeo.build</groupId>
      <artifactId>nuxeo-apt-extensions</artifactId>
    </dependency>
    <!--this is required to index annotations at build time -->
    <dependency>
      <groupId>org.nuxeo.build</groupId>
      <artifactId>nuxeo-webengine-apt</artifactId>
    </dependency>
  </dependencies>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.nuxeo.ecm.platform</groupId>
        <artifactId>nuxeo-platform-rendering</artifactId>
        <version>${nuxeo.services.version}</version>
      </dependency>
      <dependency>
        <groupId>org.nuxeo.ecm.platform</groupId>
        <artifactId>nuxeo-platform-test</artifactId>
        <version>${nuxeo.services.version}</version>
      </dependency>
      <dependency>
        <groupId>org.nuxeo.ecm.webengine</groupId>
        <artifactId>nuxeo-webengine-core</artifactId>
        <version>${nuxeo.webengine.version}</version>
      </dependency>
      <dependency>
        <groupId>org.nuxeo.ecm.webengine</groupId>
        <artifactId>nuxeo-webengine-ui</artifactId>
        <version>${nuxeo.webengine.version}</version>
      </dependency>
      <dependency>
        <groupId>org.nuxeo.ecm.webengine</groupId>
        <artifactId>nuxeo-theme-webengine</artifactId>
        <version>${nuxeo.webengine.version}</version>
      </dependency>
      <dependency>
        <groupId>org.nuxeo.theme</groupId>
        <artifactId>nuxeo-theme-core</artifactId>
        <version>${nuxeo.theme.version}</version>
      </dependency>
      <dependency>
        <groupId>org.nuxeo.theme</groupId>
        <artifactId>nuxeo-theme-fragments</artifactId>
        <version>${nuxeo.theme.version}</version>
      </dependency>
      <dependency>
        <groupId>org.nuxeo.theme</groupId>
        <artifactId>nuxeo-theme-html</artifactId>
        <version>${nuxeo.theme.version}</version>
      </dependency>

      <dependency>
        <groupId>org.nuxeo.runtime</groupId>
        <artifactId>nuxeo-runtime-jetty-adapter</artifactId>
        <version>${nuxeo.runtime.version}</version>
      </dependency>
      <dependency>
        <groupId>org.nuxeo.runtime</groupId>
        <artifactId>nuxeo-runtime-launcher</artifactId>
        <version>${nuxeo.runtime.version}</version>
      </dependency>

      <dependency>
        <groupId>org.nuxeo.runtime</groupId>
        <artifactId>nuxeo-runtime-test</artifactId>
        <version>${nuxeo.runtime.version}</version>
        <scope>test</scope>
      </dependency>

      <dependency>
        <groupId>org.wikimodel</groupId>
        <artifactId>wem</artifactId>
        <version>2.0.2</version>
      </dependency>

      <!-- jetty -->
      <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty-plus</artifactId>
        <version>6.1H.7</version>
      </dependency>
      <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty-naming</artifactId>
        <version>6.1H.7</version>
      </dependency>
      <dependency>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>jetty-annotations</artifactId>
        <version>6.1H.7</version>
      </dependency>
      <dependency>
        <groupId>jotm</groupId>
        <artifactId>jotm</artifactId>
        <version>2.0.10</version>
      </dependency>

      <!-- jboss -->
      <dependency>
        <groupId>jboss</groupId>
        <artifactId>jboss-aspect-jdk50-client</artifactId>
        <version>1.5</version>
      </dependency>
      <dependency>
        <groupId>jboss</groupId>
        <artifactId>jboss-transaction-client</artifactId>
        <version>4.0.4.GA</version>
      </dependency>
      <dependency>
        <groupId>jboss</groupId>
        <artifactId>jboss-client</artifactId>
        <version>4.0.2</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <configuration>
          <downloadSources>true</downloadSources>
          <downloadJavadocs>true</downloadJavadocs>
        </configuration>
      </plugin>
      <!-- APT plugin for annotation preprocessing -->
      <plugin>
        <groupId>org.apache.myfaces.tobago</groupId>
        <artifactId>maven-apt-plugin</artifactId>
        <executions>
          <execution>
            <id>generate-bindings</id>
            <goals>
              <goal>execute</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <!-- end APT plugin -->
    </plugins>
  </build>


</project>
