<?xml version='1.0'?>
<!--
 Copyright (c) 2010-2012 Engine Yard, Inc.
 Copyright (c) 2007-2009 Sun Microsystems, Inc.
 This source code is available under the MIT license.
 See the file LICENSE.txt for details.
 -->
<project xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd' xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jruby.rack</groupId>
  <artifactId>jruby-rack</artifactId>
  <version>1.1.14</version>
  <name>JRuby-Rack</name>
  <url>http://github.com/jruby/jruby-rack/</url>
  <description>
    A servlet bridge to Ruby-based Rack applications that allow them
    to run in Java Application servers using JRuby.
  </description>

  <properties>
    <jruby.version>1.6.8</jruby.version>
  </properties>

  <issueManagement>
    <system>Github</system>
    <url>http://github.com/jruby/jruby-rack/issues</url>
  </issueManagement>

  <scm>
    <connection>scm:git:git://github.com/jruby/jruby-rack.git</connection>
    <developerConnection>scm:git:git@github.com:jruby/jruby-rack.git</developerConnection>
    <url>http://github.com/jruby/jruby-rack/</url>
  </scm>

  <licenses>
    <license>
      <name>MIT License</name>
      <url>http://www.opensource.org/licenses/mit-license.php</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <distributionManagement>
    <repository>
      <id>codehaus-jruby-repository</id>
      <name>JRuby Central Repository</name>
      <url>dav:https://dav.codehaus.org/repository/jruby</url>
    </repository>
    <snapshotRepository>
      <id>codehaus-jruby-snapshot-repository</id>
      <name>JRuby Central Development Repository</name>
      <url>dav:https://dav.codehaus.org/snapshots.repository/jruby</url>
    </snapshotRepository>
  </distributionManagement>

  <repositories>
    <repository>
      <id>codehaus</id>
      <name>Codehaus Repository</name>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <url>http://repository.codehaus.org</url>
    </repository>
  </repositories>

  <developers>
    <developer>
      <id>nicksieger</id>
      <name>Nick Sieger</name>
      <email>nicksieger@gmail.com</email>
    </developer>
    <developer>
      <id>calavera</id>
      <name>David Calavera</name>
    </developer>
    <developer>
      <id>kares</id>
      <name>Karol Bucek</name>
      <email>self@kares.org</email>
    </developer>
  </developers>

  <dependencies>
    <dependency>
      <groupId>org.jruby</groupId>
      <artifactId>jruby-complete</artifactId>
      <version>${jruby.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs</groupId>
      <artifactId>geronimo-servlet_2.5_spec</artifactId>
      <version>1.2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs</groupId>
      <artifactId>geronimo-jsp_2.1_spec</artifactId>
      <version>1.0.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs</groupId>
      <artifactId>geronimo-el_1.0_spec</artifactId>
      <version>1.0.2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs</groupId>
      <artifactId>geronimo-jms_1.1_spec</artifactId>
      <version>1.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging-api</artifactId>
      <version>1.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.6.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>3.1.1.RELEASE</version>
        <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <defaultGoal>install</defaultGoal>
    <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
    <resources>
        <resource>
            <directory>${basedir}/src/main/ruby</directory>
        </resource>
        <resource>
            <directory>${basedir}/src/main/tld</directory>
            <targetPath>META-INF</targetPath>
        </resource>
    </resources>
    <testSourceDirectory>${basedir}/src/spec/java</testSourceDirectory>
    <testResources>
        <testResource>
            <directory>${basedir}/src/spec/ruby</directory>
        </testResource>
    </testResources>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.5.1</version>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
          <showDeprecation>true</showDeprecation>
          <showWarnings>true</showWarnings>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-help-plugin</artifactId>
        <version>2.1.1</version>
      </plugin>
      <plugin>
        <groupId>org.jruby.plugins</groupId>
        <artifactId>jruby-rake-plugin</artifactId>
        <version>${jruby.version}</version>
        <executions>
          <execution>
            <id>gem-install-bundler</id>
            <phase>test</phase>
            <goals><goal>install-gems</goal></goals>
            <configuration>
              <gems>bundler</gems>
            </configuration>
          </execution>
          <execution>
            <id>bundle-install</id>
            <phase>test</phase>
            <goals><goal>jruby</goal></goals>
            <configuration>
              <args>-S bundle install</args>
            </configuration>
          </execution>
          <execution>
            <id>rake-spec</id>
            <phase>test</phase>
            <goals><goal>rake</goal></goals>
            <configuration>
              <args>speconly SKIP_SPECS=${maven.test.skip}</args>
            </configuration>
          </execution>
          <execution>
            <id>rake-resources</id>
            <phase>prepare-package</phase>
            <!-- bind "late" so we do not run during compile/test-compile -->
            <goals><goal>rake</goal></goals>
            <configuration>
              <!-- additional (ruby) generated resources -->
              <args>resources VERSION=${project.version}</args>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-webdav</artifactId>
        <version>1.0-beta-2</version>
      </extension>
    </extensions>
  </build>
</project>

