<?xml version="1.0"?>
<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>
  <groupId>org.jruby</groupId>
  <artifactId>shared</artifactId>
  <packaging>pom</packaging>
  <version>1.7.2</version>
  <name>JRuby Shared</name>
  <url>http://www.jruby.org/</url>
  <description>A 1.9.3 compatible Ruby interpreter for the JVM</description>

  <issueManagement>
    <system>JIRA</system>
    <url>http://jira.codehaus.org/browse/JRUBY</url>
  </issueManagement>

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

  <licenses>
    <license>
      <name>Common Public License - v 1.0</name>
      <url>http://www-128.ibm.com/developerworks/library/os-cpl.html</url>
      <distribution>repo</distribution>
    </license>
    <license>
      <name>GNU General Public License Version 2</name>
      <url>http://www.gnu.org/copyleft/gpl.html</url>
      <distribution>repo</distribution>
    </license>
    <license>
      <name>GNU Lesser General Public License Version 2.1</name>
      <url>http://www.gnu.org/licenses/lgpl.html</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>
    <site>
      <id>codehaus-jruby-site</id>
      <name>JRuby Maven site</name>
      <url>dav:https://dav.codehaus.org/jruby/info</url>
    </site>
  </distributionManagement>

  <developers>
    <developer>
      <id>headius</id>
      <name>Charles Nutter</name>
      <email>charles.o.nutter@sun.com</email>
    </developer>
    <developer>
      <id>enebo</id>
      <name>Thomas Enebo</name>
      <email>enebo@acm.org</email>
    </developer>
    <developer>
      <id>olabini</id>
      <name>Ola Bini</name>
      <email>ola.bini@ki.se</email>
    </developer>
    <developer>
      <id>nsieger</id>
      <name>Nick Sieger</name>
      <email>nicksieger@gmail.com</email>
    </developer>
  </developers>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.7</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>bsf</groupId>
      <artifactId>bsf</artifactId>
      <version>2.3.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.ant</groupId>
      <artifactId>ant</artifactId>
      <version>1.7.0</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <properties>
    <asm.version>4.0</asm.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <modules>
    <module>maven</module>
    <module>docs</module>
  </modules>

  <build>
    <!-- keep it relative to the module direcotires -->
    <sourceDirectory>../../src</sourceDirectory>
    <outputDirectory>../../build/classes/jruby</outputDirectory>
    <defaultGoal>install</defaultGoal>
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-webdav</artifactId>
      </extension>
    </extensions> 
    <pluginManagement>
      <plugins>
	<plugin>
	  <groupId>org.codehaus.mojo</groupId>
	  <artifactId>exec-maven-plugin</artifactId>
	  <version>1.1</version>
	  <executions>
	    <execution>
	      <phase>process-classes</phase>
	      <goals><goal>exec</goal></goals>
	    </execution>
	  </executions>
	  <configuration>
	    <executable>ant</executable>
	    <workingDirectory>${project.basedir}/../..</workingDirectory>
	    <arguments><argument>${ant.target}</argument></arguments>
	  </configuration>
	</plugin>
	<plugin>
	  <groupId>org.apache.maven.plugins</groupId>
	  <artifactId>maven-antrun-plugin</artifactId>
	  <version>1.3</version>
	  <executions>
	    <execution>
	      <id>copy-jar</id>
	      <phase>package</phase>
	      <goals><goal>run</goal></goals>
	      <configuration>
		<tasks>
		  <echo>copy ${project.basedir}/../../lib/${project.artifactId}.jar to ${project.build.directory}/${project.build.finalName}.jar</echo>
		  <copy overwrite="true" file="${project.basedir}/../../lib/${project.artifactId}.jar" tofile="${project.build.directory}/${project.build.finalName}.jar"/>
		</tasks>
	      </configuration>
	    </execution>
	  </executions>
	</plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
	<artifactId>maven-clean-plugin</artifactId>
	<version>2.4.1</version>
	<configuration>
	  <filesets>
	    <fileset>
	      <directory>build</directory>
	    </fileset>
	    <fileset>
	      <directory>src_gen</directory>
	    </fileset>
	  </filesets>
	</configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
	<version>2.1.2</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
<!--
      TODO remove javadocs errors
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
	<version>2.7</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
-->
      <plugin>
	<artifactId>maven-compiler-plugin</artifactId>
	<version>2.2</version>
	<configuration>
          <source>1.5</source>
          <target>1.5</target>
	  <excludes><exclude>**/*</exclude></excludes>
	</configuration>
      </plugin>
      <plugin>
	<artifactId>maven-jar-plugin</artifactId>
	<version>2.3</version>
	<configuration>
	  <excludes><exclude>**/*</exclude></excludes>
	</configuration>
      </plugin>
    </plugins>
  </build>
</project>
