<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-webengine-features</artifactId>
    <version>5.4.2-HF29</version>
  </parent>

  <groupId>org.nuxeo.ecm.webengine</groupId>
  <artifactId>nuxeo-webengine-blogs</artifactId>
  <name>Nuxeo Webengine Blogs</name>
  <description>Sites Module to handle blogs.</description>

  <properties>
    <nuxeo.distribution.version>5.4.2-HF29</nuxeo.distribution.version>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.nuxeo.ecm.webengine</groupId>
      <artifactId>nuxeo-webengine-blogs-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.nuxeo.ecm.webengine</groupId>
      <artifactId>nuxeo-webengine-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.nuxeo.ecm.webengine</groupId>
      <artifactId>nuxeo-webengine-sites</artifactId>
    </dependency>
    <dependency>
      <groupId>org.nuxeo.theme</groupId>
      <artifactId>nuxeo-theme-core</artifactId>
    </dependency>
    <dependency>
      <groupId>javax.ejb</groupId>
      <artifactId>ejb-api</artifactId>
    </dependency>
    <dependency>
      <groupId>javax.ws.rs</groupId>
      <artifactId>jsr311-api</artifactId>
    </dependency>    

    <!--this is required to index annotations at build time -->
    <dependency>
      <groupId>org.nuxeo.build</groupId>
      <artifactId>nuxeo-webengine-apt</artifactId>
      <scope>compile</scope>
      <!-- workaround for Mac OS X -->
      <exclusions>
        <exclusion>
          <groupId>sun.jdk</groupId>
          <artifactId>tools</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>

  <profiles>
    <profile>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <id>dev</id>
      <properties>
        <assembly.name>${assembly.tests.name}</assembly.name>
      </properties>
    </profile>
  </profiles>

  <build>
    <plugins>
      <!-- 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 -->
      <!-- manual testing purpose -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-nuxeo-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <runPreprocessor>false</runPreprocessor>
          <format>directory</format>
          <outputDirectory>target</outputDirectory>
          <targetFile>blogs.ear</targetFile>
          <descriptor>${basedir}/src/main/resources/assemble/blogs.xml</descriptor>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>