<?xml version="1.0" encoding="UTF-8"?>
<!--
  This pom functions as a default configuration.  The subproject
  poms each inherit configuration from this one.

  When adding version information for an artifact please do the following
  - add a version property for the specific version
  - add a dependency in the dependencyManagement section which refers to
    the property
-->
<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>
    <groupId>org.jboss.kernel</groupId>
    <artifactId>jboss-mc-kernel</artifactId>
    <version>2.2.0.Alpha1</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jboss.kernel</groupId>
  <artifactId>kernel-dist</artifactId>
  <version>2.2.0.Alpha1</version>
  <packaging>pom</packaging>
  <name>JBoss Microcontainer Distribution Build</name>
  <description>
    The JBoss Microcontainer provides a lightweight container for managing POJOs, their deployment
    and configuration.
  </description>

  <profiles>
    <profile>
      <id>dist</id>
        <build>
          <plugins>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-assembly-plugin</artifactId>
              <version>2.2-beta-2</version>
              <executions>
                <execution>
                  <id>make-assembly</id>
                  <phase>package</phase>
                  <goals>
                    <goal>attached</goal>
                  </goals>
                  <configuration>
                    <finalName>jboss-kernel-${project.version}</finalName>
                    <descriptors>
                      <descriptor>src/assembly/dist.xml</descriptor>
                      <descriptor>src/assembly/dist-with-deps.xml</descriptor>
                      <descriptor>src/assembly/src.xml</descriptor>
                    </descriptors>
                  </configuration>
                </execution>
              </executions>
            </plugin>
          </plugins>
        </build>
    </profile>
  </profiles>
  
  <dependencies>
    <dependency>
      <groupId>org.jboss.kernel</groupId>
      <artifactId>jboss-aop-mc-int</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jboss.kernel</groupId>
      <artifactId>jboss-dependency</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jboss.kernel</groupId>
      <artifactId>jboss-kernel</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jboss.kernel</groupId>
      <artifactId>jboss-guice-int</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jboss.kernel</groupId>
      <artifactId>jboss-spring-int</artifactId>
    </dependency>
    
  </dependencies>

</project>
