<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.juzu</groupId>
    <artifactId>juzu-doc-tutorial-parent</artifactId>
    <version>1.2.0</version>
  </parent>

  <artifactId>juzu-doc-tutorial-examples</artifactId>
  <version>1.2.0</version>
  <packaging>war</packaging>

  <name>Juzu Tutorial Examples</name>
  <description>Various tutorial examples</description>

  <dependencies>

    <dependency>
      <groupId>javax.inject</groupId>
      <artifactId>javax.inject</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.enterprise</groupId>
      <artifactId>cdi-api</artifactId>
      <version>1.0-SP4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>javax.servlet-api</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.portlet</groupId>
      <artifactId>portlet-api</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.juzu</groupId>
      <artifactId>juzu-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.juzu</groupId>
      <artifactId>juzu-plugins-less4j</artifactId>
    </dependency>
    <dependency>
      <groupId>org.juzu</groupId>
      <artifactId>juzu-plugins-servlet</artifactId>
    </dependency>
    <dependency>
      <groupId>org.juzu</groupId>
      <artifactId>juzu-plugins-portlet</artifactId>
    </dependency>

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-web</artifactId>
      <scope>test</scope>
    </dependency>

    <!-- -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.juzu</groupId>
      <artifactId>juzu-depchain-arquillian</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.juzu</groupId>
      <artifactId>juzu-depchain-arquillian-tomcat7</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <finalName>juzu-doc-tutorial-examples</finalName>
  </build>

  <profiles>
    
    <profile>
      <id>guice</id>
      <activation>
        <property>
          <name>target</name>
          <value>guice</value>
        </property>
      </activation>
      <dependencies>
        <dependency>
          <groupId>org.juzu</groupId>
          <artifactId>juzu-core</artifactId>
        </dependency>
        <dependency>
          <groupId>javax.inject</groupId>
          <artifactId>javax.inject</artifactId>
        </dependency>
        <dependency>
          <groupId>javax.portlet</groupId>
          <artifactId>portlet-api</artifactId>
        </dependency>
        <dependency>
          <groupId>com.google.inject</groupId>
          <artifactId>guice</artifactId>
        </dependency>
      </dependencies>
    </profile>

    <profile>
      <id>spring</id>
      <activation>
        <property>
          <name>target</name>
          <value>spring</value>
        </property>
      </activation>
      <properties>
        <maven.war.webxml>src/main/web-spring.xml</maven.war.webxml>
      </properties>
      <dependencies>
        <dependency>
          <groupId>org.juzu</groupId>
          <artifactId>juzu-core</artifactId>
        </dependency>
        <dependency>
          <groupId>javax.inject</groupId>
          <artifactId>javax.inject</artifactId>
        </dependency>
        <dependency>
          <groupId>javax.portlet</groupId>
          <artifactId>portlet-api</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework</groupId>
          <artifactId>spring-web</artifactId>
        </dependency>
      </dependencies>
    </profile>

    <profile>
      <id>weld</id>
      <activation>
        <property>
          <name>target</name>
          <value>weld</value>
        </property>
      </activation>
      <dependencies>
        <dependency>
          <groupId>org.juzu</groupId>
          <artifactId>juzu-core</artifactId>
        </dependency>
        <dependency>
          <groupId>javax.inject</groupId>
          <artifactId>javax.inject</artifactId>
        </dependency>
        <dependency>
          <groupId>javax.enterprise</groupId>
          <artifactId>cdi-api</artifactId>
          <version>1.0-SP4</version>
        </dependency>
        <dependency>
          <groupId>javax.portlet</groupId>
          <artifactId>portlet-api</artifactId>
        </dependency>
        <dependency>
          <groupId>org.jboss.weld</groupId>
          <artifactId>weld-core</artifactId>
        </dependency>
      </dependencies>
    </profile>

    <profile>
      <id>ee-guice</id>
      <activation>
        <property>
          <name>target</name>
          <value>ee-guice</value>
        </property>
      </activation>
      <dependencies>
        <dependency>
          <groupId>org.juzu</groupId>
          <artifactId>juzu-core</artifactId>
        </dependency>
        <dependency>
          <groupId>javax.inject</groupId>
          <artifactId>javax.inject</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>javax.portlet</groupId>
          <artifactId>portlet-api</artifactId>
        </dependency>
        <dependency>
          <groupId>com.google.inject</groupId>
          <artifactId>guice</artifactId>
        </dependency>
      </dependencies>
    </profile>

    <profile>
      <id>ee-spring</id>
      <activation>
        <property>
          <name>target</name>
          <value>ee-spring</value>
        </property>
      </activation>
      <properties>
        <maven.war.webxml>src/main/web-spring.xml</maven.war.webxml>
      </properties>
      <dependencies>
        <dependency>
          <groupId>org.juzu</groupId>
          <artifactId>juzu-core</artifactId>
        </dependency>
        <dependency>
          <groupId>javax.inject</groupId>
          <artifactId>javax.inject</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>javax.portlet</groupId>
          <artifactId>portlet-api</artifactId>
        </dependency>
        <dependency>
          <groupId>org.springframework</groupId>
          <artifactId>spring-web</artifactId>
        </dependency>
      </dependencies>
    </profile>
    
    <profile>
      <id>PLF</id>
      <activation>
        <property>
          <name>!target</name>
        </property>
      </activation>
      <!-- tag::PLF[] -->
      <dependencies>
        <dependency>
          <groupId>org.juzu</groupId>
          <artifactId>juzu-core</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
	      <groupId>org.juzu</groupId>
	      <artifactId>juzu-plugins-less4j</artifactId>
	      <scope>provided</scope>
	     </dependency>
	     <dependency>
	      <groupId>org.juzu</groupId>
	      <artifactId>juzu-plugins-servlet</artifactId>
	      <scope>provided</scope>
	     </dependency>
	     <dependency>
	      <groupId>org.juzu</groupId>
	      <artifactId>juzu-plugins-portlet</artifactId>
	      <scope>provided</scope>
	     </dependency>
        <dependency>
          <groupId>org.codehaus.groovy</groupId>
          <artifactId>groovy-all</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>javax.inject</groupId>
          <artifactId>javax.inject</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>com.google.inject</groupId>
          <artifactId>guice</artifactId>
          <scope>provided</scope>
        </dependency>
      </dependencies>
      <!-- end::PLF[] -->
    </profile>

    <profile>
      <id>gatein-guice</id>
      <activation>
        <property>
          <name>target</name>
          <value>gatein-guice</value>
        </property>
      </activation>
      <!-- tag::gatein-guice[] -->
      <dependencies>
        <dependency>
          <groupId>org.juzu</groupId>
          <artifactId>juzu-core</artifactId>
        </dependency>
        <dependency>
          <groupId>org.codehaus.groovy</groupId>
          <artifactId>groovy-all</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>javax.inject</groupId>
          <artifactId>javax.inject</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>com.google.inject</groupId>
          <artifactId>guice</artifactId>
          <scope>provided</scope>
        </dependency>
      </dependencies>
      <!-- end::gatein-guice[] -->
    </profile>

    <profile>
      <id>gatein-spring</id>
      <activation>
        <property>
          <name>target</name>
          <value>gatein-spring</value>
        </property>
      </activation>
      <properties>
        <maven.war.webxml>src/main/web-spring.xml</maven.war.webxml>
      </properties>
      <!-- tag::gatein-spring[] -->
      <dependencies>
        <dependency>
          <groupId>org.juzu</groupId>
          <artifactId>juzu-core</artifactId>
        </dependency>
        <dependency>
          <groupId>org.codehaus.groovy</groupId>
          <artifactId>groovy-all</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>javax.inject</groupId>
          <artifactId>javax.inject</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.springframework</groupId>
          <artifactId>spring-web</artifactId>
        </dependency>
      </dependencies>
      <!-- end::gatein-spring[] -->
    </profile>

    <profile>
      <id>gatein-cdi</id>
      <activation>
        <property>
          <name>target</name>
          <value>gatein-cdi</value>
        </property>
      </activation>
      <properties>
        <maven.war.webxml>src/main/web-cdi.xml</maven.war.webxml>
      </properties>
      <!-- tag::gatein-cdi[] -->
      <dependencies>
        <dependency>
          <groupId>org.juzu</groupId>
          <artifactId>juzu-core</artifactId>
        </dependency>
        <dependency>
          <groupId>org.codehaus.groovy</groupId>
          <artifactId>groovy-all</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>javax.inject</groupId>
          <artifactId>javax.inject</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>javax.enterprise</groupId>
          <artifactId>cdi-api</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.javassist</groupId>
          <artifactId>javassist</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.jboss.weld</groupId>
          <artifactId>weld-core</artifactId>
        </dependency>
        <dependency>
          <groupId>org.jboss.weld.servlet</groupId>
          <artifactId>weld-servlet-core</artifactId>
        </dependency>
      </dependencies>
      <!-- end::gatein-cdi[] -->
    </profile>

  </profiles>

</project>
