<?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">
  <parent>
    <artifactId>richfaces-ui-iteration-assembler</artifactId>
    <groupId>org.richfaces.ui.iteration</groupId>
    <version>4.0.0.Alpha2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.richfaces.ui.iteration</groupId>
  <artifactId>richfaces-ui-iteration-api</artifactId>
  <name>Richfaces UI Iteration API</name>
  <version>4.0.0.Alpha2</version>
  <scm>
    <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/root/ui/iteration/tags/richfaces-ui-iteration-4.0.0.Alpha2/dist/richfaces-ui-iteration-api</connection>
    <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/root/ui/iteration/tags/richfaces-ui-iteration-4.0.0.Alpha2/dist/richfaces-ui-iteration-api</developerConnection>
    <url>http://fisheye.jboss.org/browse/richfaces/tags/richfaces-ui-iteration-4.0.0.Alpha2</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>1.3.3</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>${assembly.projects.group}:*-api:*</include>
                </includes>
              </artifactSet>
              <createSourcesJar>true</createSourcesJar>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.richfaces.build.resources</groupId>
            <artifactId>faces-shade-transformers</artifactId>
            <version>1</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
              <execution>
                <id>deps</id>
                <phase>process-sources</phase>
                <goals>
                  <goal>unpack-dependencies</goal>
                </goals>
                <configuration>
                  <classifier>sources</classifier>
                  <includeGroupIds>${assembly.projects.group}</includeGroupIds>
                  <useSubDirectoryPerArtifact>true</useSubDirectoryPerArtifact>
                  <excludeTransitive>true</excludeTransitive>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.7</version>
            <executions>
              <execution>
                <id>javadoc-jar</id>
                <phase>package</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <sourcepath>${basedir}/target/dependency</sourcepath>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>com.sun.faces</groupId>
      <artifactId>jsf-api</artifactId>
      <version>2.0.2</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>javax.el</groupId>
      <artifactId>el-api</artifactId>
      <version>1.0</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.richfaces.ui.iteration</groupId>
        <artifactId>richfaces-ui-iteration-bom</artifactId>
        <version>4.0.0.Alpha2</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <properties>
    <faces-shade-transformers.version>1</faces-shade-transformers.version>
    <assembly.projects.group>org.richfaces.ui.iteration</assembly.projects.group>
  </properties>
</project>

