Show
hide
<?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">
<parent>
<groupId>org.jruby</groupId>
<artifactId>shared</artifactId>
<version>0.9.9</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<packaging>jar</packaging>
<version>0.9.9</version>
<name>JRuby Complete</name>
<dependencies>
<dependency>
<groupId>requireTest</groupId>
<artifactId>requireTest</artifactId>
<version>SNAPSHOT</version>
<scope>system</scope>
<systemPath>${project.basedir}/../../test/requireTest.jar</systemPath>
</dependency>
</dependencies>
<build>
<sourceDirectory>${project.basedir}/../../src</sourceDirectory>
<testSourceDirectory>${project.basedir}/../../test</testSourceDirectory>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>2.2.3</version>
</artifactItem>
<artifactItem>
<groupId>asm</groupId>
<artifactId>asm-commons</artifactId>
<version>2.2.3</version>
</artifactItem>
<artifactItem>
<groupId>backport-util-concurrent</groupId>
<artifactId>backport-util-concurrent</artifactId>
<version>3.0</version>
</artifactItem>
<artifactItem>
<groupId>jline</groupId>
<artifactId>jline</artifactId>
<version>0.9.91</version>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<!-- <include>org/jruby/test/MainTestSuite.java</include> -->
<!-- <include>org/jruby/test/ScriptTestSuite.java</include> -->
<!-- <include>org/jruby/test/TestUnitTestSuite.java</include> -->
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>unjar-deps</id>
<phase>process-resources</phase>
<configuration>
<tasks>
<delete file="${project.build.outputDirectory}/META-INF/MANIFEST.MF"/>
<mkdir dir="${project.build.outputDirectory}/META-INF/jruby.home"/>
<copy todir="${project.build.outputDirectory}/META-INF/jruby.home">
<fileset dir="${project.basedir}/../..">
<include name="bin/*"/>
<include name="lib/ruby/gems/1.8/cache/sources*.gem"/>
<include name="lib/ruby/gems/1.8/gems/sources*/**/*"/>
<include name="lib/ruby/gems/1.8/specifications/sources*.gemspec"/>
<include name="lib/ruby/site_ruby/**/*"/>
</fileset>
</copy>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>serialize</id>
<phase>process-classes</phase>
<configuration>
<tasks>
<taskdef name="jruby-serialize" classname="org.jruby.util.ant.JRubySerialize">
<classpath path="${project.build.outputDirectory}"/>
</taskdef>
<jruby-serialize destdir="${project.build.outputDirectory}">
<fileset dir="${project.build.sourceDirectory}">
<include name="builtin/**/*.rb"/>
</fileset>
</jruby-serialize>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>jarjar</id>
<phase>package</phase>
<configuration>
<tasks>
<taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask"
classpath="${project.basedir}/../../lib/jarjar-0.7.jar"/>
<delete file="${project.build.directory}/${project.build.finalName}.jar"/>
<jarjar destfile="${project.build.directory}/${project.build.finalName}.jar">
<fileset dir="${project.build.outputDirectory}">
<include name="META-INF/jruby.home/**/*"/>
<include name="META-INF/**/*"/>
<include name="**/*.class"/>
<include name="**/*.properties"/>
<include name="**/*.rb"/>
<include name="**/*.rb.ast.ser"/>
<exclude name="org/jruby/util/ant/**/*.class"/>
</fileset>
<fileset dir="${project.basedir}/../../lib/ruby/1.8">
<include name="**/*.rb"/>
</fileset>
<rule pattern="org.objectweb.asm.**" result="jruby.objectweb.asm.@1"/>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="${jruby.main.class}"/>
</manifest>
</jarjar>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>tests</id>
<phase>test</phase>
<configuration>
<tasks>
<mkdir dir="${project.build.directory}/surefire-reports"/>
<taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
classpathref="maven.plugin.classpath"/>
<junit fork="yes" forkMode="once" haltonfailure="true" dir="${project.build.testOutputDirectory}" maxmemory="384M">
<classpath refid="maven.test.classpath"/>
<formatter type="plain"/>
<formatter type="xml"/>
<formatter type="brief" usefile="false"/>
<sysproperty key="java.awt.headless" value="true"/>
<sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jruby.home" value="${basedir}/../.."/>
<sysproperty key="jruby.base" value="${basedir}/../.."/>
<sysproperty key="jruby.lib" value="${basedir}/../../lib"/>
<test name="org.jruby.test.MainTestSuite" unless="maven.test.skip" todir="${project.build.directory}/surefire-reports"/>
<test name="org.jruby.test.ScriptTestSuite" unless="maven.test.skip" todir="${project.build.directory}/surefire-reports"/>
<test name="org.jruby.test.TestUnitTestSuite" unless="maven.test.skip" todir="${project.build.directory}/surefire-reports"/>
</junit>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
|