<?xml version="1.0" encoding="UTF-8"?>

<!-- ====================================================================== -->
<!--                                                                        -->
<!--  JBoss, the OpenSource J2EE webOS                                      -->
<!--                                                                        -->
<!--  Distributable under LGPL license.                                     -->
<!--  See terms of license at http://www.gnu.org.                           -->
<!--                                                                        -->
<!-- ====================================================================== -->

<!-- $Id: pom.xml 3182 2008-12-03 13:48:29Z tom.baeyens@jboss.com $ -->
<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>
  <name>jBPM 4 - API</name>
  <groupId>org.jbpm.jbpm4</groupId>
  <artifactId>jbpm-api</artifactId>
  <packaging>jar</packaging>

  <!-- Parent -->
  <parent>
    <groupId>org.jbpm.jbpm4</groupId>
    <artifactId>jbpm</artifactId>
    <version>4.0.0-Alpha1</version>
    <relativePath>../../pom.xml</relativePath>
  </parent>

  <!-- Properties -->
  <properties>
  </properties>
  
  <!-- DependencyManagement -->
  <dependencyManagement>
    <dependencies>
    </dependencies>
  </dependencyManagement>
  
  <!-- Dependencies -->
  <dependencies>
    <dependency>
      <groupId>jboss</groupId>
      <artifactId>jboss-j2ee</artifactId>
    </dependency>
  </dependencies>
  
  <!-- Plugins -->
  <build>
    <plugins>
    </plugins>
  </build>
  
  <!-- Reporting -->
  <reporting>
    <plugins>
    </plugins>
  </reporting>

  <profiles>
    <profile>
      <id>distro</id>
      <properties>
        <xsddocs>true</xsddocs>
      </properties>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>javadoc</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <show>public</show>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>xsddocs</id>
      <activation>
        <os>
          <family>Windows</family>
        </os>
        <property>
          <name>xsddocs</name>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <id>generate-schemadocs</id>
                <phase>package</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks>
                    <echo message="basedir: ${basedir}" />
                    <mkdir dir="target/schemadocs" />
                    <taskdef name="xsddoc" classname="net.sf.xframe.xsddoc.Task" classpathref="maven.plugin.classpath" />
                    <xsddoc out="${basedir}/target/schemadocs" title="jBPM 4 Schema's" verbose="false">
                      <fileset dir="src/main/resources" />
                    </xsddoc>
                  </tasks>
                </configuration>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>xsddoc</groupId>
                <artifactId>xsddoc</artifactId>
                <version>1.0</version>
              </dependency>
              <dependency>
                <groupId>xalan</groupId>
                <artifactId>xalan</artifactId>
                <version>2.7.0</version>
              </dependency>
            </dependencies>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  
</project>