<?xml version="1.0" encoding="ISO-8859-1"?>
<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.apache</groupId>
    <artifactId>apache</artifactId>
    <version>3</version>
  </parent>
  <organization>
    <name>Apache MINA Project</name>
    <url>http://mina.apace.org/</url>
  </organization>
  <groupId>org.apache.mina</groupId>
  <version>1.0.1</version>
  <artifactId>build</artifactId>
  <name>Apache MINA Root Build POM</name>
  <packaging>pom</packaging>

  <url>http://mina.apache.org/</url>
  <inceptionYear>2004</inceptionYear>

  <issueManagement>
    <system>jira</system>
    <url>http://issues.apache.org/jira/browse/DIRMINA</url>
  </issueManagement>

  <scm>
    <connection>scm:svn:https://svn.apache.org/repos/asf/mina/tags/1.0.1</connection>
    <url>https://svn.apache.org/repos/asf/mina/tags/1.0.1</url>
    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/mina/tags/1.0.1</developerConnection>
  </scm>

  <ciManagement>
    <notifiers>
      <notifier>
        <type>mail</type>
        <address>dev@mina.apache.org</address>
      </notifier>
    </notifiers>
  </ciManagement>

  <description>
    MINA (Multipurpose Infrastructure for Network Applications) is a
    network application framework which helps users develop high
    performance and highly scalable network applications easily.
  </description>

  <licenses>
    <license>
      <name>Apache 2.0 License</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <dependencies>
   <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <repositories>
  </repositories>

  <profiles>
    <profile>
      <id>jdk1.5</id>
      <activation>
        <activeByDefault>true</activeByDefault>
        <jdk>1.5</jdk>
      </activation>
      <modules>
        <module>core</module>
        <module>java5</module>
        <module>filter-ssl</module>
        <module>filter-codec-netty</module>
        <module>filter-compression</module>
        <module>integration-spring</module>
	      <module>integration-jmx</module>
        <module>example</module>
      </modules>
    </profile>

    <profile>
      <id>jdk1.4</id>
      <activation>
        <jdk>1.4</jdk>
      </activation>
      <modules>
        <module>core</module>
        <module>filter-codec-netty</module>
        <module>filter-compression</module>
      </modules>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <phase>validate</phase>
                <configuration>
                  <tasks>
                    <echo>
====================================================================
                       W A R N I N G
                       -------------

Build with 1.4 jvm will not include modules:
 
 o mina-java5
 o mina-filter-ssl
 o mina-integration-spring
 o mina-example
 o mina-jmx

Use JDK 1.5 to make sure these modules build.
====================================================================
                    </echo>
                  </tasks>
                </configuration>
                <goals>
                  <goal>run</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.4</source>
          <target>1.4</target>
          <debug>true</debug>
          <optimize>true</optimize>
          <showDeprecations>true</showDeprecations>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>**/Abstract*</exclude>

            <!-- Timing issues with these tests due to VM bug for releasing file descriptors -->
            <exclude>**/DatagramBindTest.java</exclude>
            <exclude>**/VmPipeTrafficControlTest.java</exclude>

            <exclude>**/*RegressionTest*</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>2.0.1</version>
        <configuration>
          <descriptor>release.xml</descriptor>
          <finalName>mina-${pom.version}</finalName>
          <includeSite>false</includeSite>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <tagBase>
            https://svn.apache.org/repos/asf/mina/tags
          </tagBase>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
