Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  
  <parent>
    <groupId>org.jruby</groupId>
    <artifactId>jruby-parent</artifactId>
    <version>1.7.12</version>
  </parent>
  <artifactId>jruby-core</artifactId>
  <packaging>jar</packaging>
  
  <name>JRuby Core</name>

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

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>
    <dependency>
      <groupId>org.ow2.asm</groupId>
      <artifactId>asm</artifactId>
      <version>${asm.version}</version>
    </dependency>
    <dependency>
      <groupId>org.ow2.asm</groupId>
      <artifactId>asm-commons</artifactId>
      <version>${asm.version}</version>
    </dependency>
    <dependency>
      <groupId>org.ow2.asm</groupId>
      <artifactId>asm-analysis</artifactId>
      <version>${asm.version}</version>
    </dependency>
    <dependency>
      <groupId>org.ow2.asm</groupId>
      <artifactId>asm-util</artifactId>
      <version>${asm.version}</version>
    </dependency>
    <dependency>
      <groupId>org.jruby.joni</groupId>
      <artifactId>joni</artifactId>
      <version>2.1.1</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>com.github.jnr</groupId>
      <artifactId>jnr-netdb</artifactId>
      <version>1.1.2</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>com.github.jnr</groupId>
      <artifactId>jnr-enxio</artifactId>
      <version>0.4</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>com.github.jnr</groupId>
      <artifactId>jnr-x86asm</artifactId>
      <version>1.0.2</version>
    </dependency>
    <dependency>
      <groupId>com.github.jnr</groupId>
      <artifactId>jnr-unixsocket</artifactId>
      <version>0.3</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>com.github.jnr</groupId>
      <artifactId>jnr-posix</artifactId>
      <version>3.0.1</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.jruby.extras</groupId>
      <artifactId>bytelist</artifactId>
      <version>1.0.11</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>com.github.jnr</groupId>
      <artifactId>jnr-constants</artifactId>
      <version>0.8.5</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.jruby.jcodings</groupId>
      <artifactId>jcodings</artifactId>
      <version>1.0.10</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>com.github.jnr</groupId>
      <artifactId>jnr-ffi</artifactId>
      <version>1.0.7</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>com.github.jnr</groupId>
      <artifactId>jffi</artifactId>
      <version>${jffi.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>com.github.jnr</groupId>
      <artifactId>jffi</artifactId>
      <version>${jffi.version}</version>
      <classifier>native</classifier>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.yaml</groupId>
      <artifactId>snakeyaml</artifactId>
      <version>1.13</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>com.jcraft</groupId>
      <artifactId>jzlib</artifactId>
      <version>1.1.2</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>com.headius</groupId>
      <artifactId>invokebinder</artifactId>
      <version>1.2</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>org.osgi.core</artifactId>
      <version>5.0.0</version>
      <type>jar</type>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.ant</groupId>
      <artifactId>ant</artifactId>
      <version>${ant.version}</version>
      <type>jar</type>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>bsf</groupId>
      <artifactId>bsf</artifactId>
      <version>2.4.0</version>
      <type>jar</type>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.martiansoftware</groupId>
      <artifactId>nailgun-server</artifactId>
      <version>0.9.1</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>com.headius</groupId>
      <artifactId>coro-mock</artifactId>
      <version>1.0</version>
      <type>jar</type>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.headius</groupId>
      <artifactId>unsafe-mock</artifactId>
      <version>8.0</version>
      <type>jar</type>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.headius</groupId>
      <artifactId>jsr292-mock</artifactId>
      <version>1.1</version>
      <type>jar</type>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.jruby</groupId>
      <artifactId>yecht</artifactId>
      <version>1.0</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.jruby</groupId>
      <artifactId>joda-timezones</artifactId>
      <version>${tzdata.jar.version}</version>
      <type>jar</type>
      <scope>${tzdata.scope}</scope>
    </dependency>
    <!-- joda-time MUST come after the joda-timezone for the shade plugin
         to pack it correctly -->
    <dependency>
      <groupId>joda-time</groupId>
      <artifactId>joda-time</artifactId>
      <version>${joda.time.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>com.headius</groupId>
      <artifactId>options</artifactId>
      <version>1.1</version>
    </dependency>
  </dependencies>
  <properties>
    <anno.sources>${project.basedir}/target/generated-sources</anno.sources>
    <unsafe.jar>${settings.localRepository}/com/headius/unsafe-mock/8.0/unsafe-mock-8.0.jar</unsafe.jar>
    <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
    <build.date>${maven.build.timestamp}</build.date>
    <Constants.java>org/jruby/runtime/Constants.java</Constants.java>
    <jruby.compile.memory>512M</jruby.compile.memory>
    <jruby.test.memory>1024M</jruby.test.memory>
    <jruby.test.memory.permgen>512M</jruby.test.memory.permgen>
    <maven.test.skip>true</maven.test.skip>
    <jruby.basedir>${basedir}/..</jruby.basedir>
    <!-- this one needs to match the version packed with joda-time -->
    <tzdata.version>2013d</tzdata.version>
    <!-- any version which is on maven repo will do -->
    <tzdata.jar.version>2013d</tzdata.jar.version>
    <tzdata.scope>provided</tzdata.scope>
    <main.basedir>${project.parent.basedir}</main.basedir>
    <bundle.name>JRuby Core</bundle.name>
    <bundle.symbolic_name>org.jruby.jruby-core</bundle.symbolic_name>
  </properties>
  <build>
    <defaultGoal>package</defaultGoal>
    <plugins>
      <plugin>
	<groupId>org.apache.felix</groupId>
	<artifactId>maven-bundle-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>properties-maven-plugin</artifactId>
        <version>1.0-alpha-2</version>
        <executions>
          <execution>
            <id>properties</id>
            <phase>initialize</phase>
            <goals>
              <goal>read-project-properties</goal>
            </goals>
            <configuration>
              <files>
                <file>${jruby.basedir}/default.build.properties</file>
                <file>${jruby.basedir}/build.properties</file>
              </files>
              <quiet>true</quiet>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>buildnumber-maven-plugin</artifactId>
        <version>1.2</version>
        <executions>
          <execution>
            <id>jruby-revision</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>create</goal>
            </goals>
            <configuration>
              <shortRevisionLength>7</shortRevisionLength>
              <buildNumberPropertyName>jruby.revision</buildNumberPropertyName>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.8</version>
        <executions>
          <execution>
            <id>add-populators</id>
            <phase>process-classes</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>${anno.sources}</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>1.2.1</version>
        <executions>
          <execution>
            <id>invoker-generator</id>
            <phase>process-classes</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <arguments>
                <argument>-Djruby.bytecode.version=${base.java.version}</argument>
                <argument>-classpath</argument>
                <classpath />
                <argument>org.jruby.anno.InvokerGenerator</argument>
                <argument>${anno.sources}/annotated_classes.txt</argument>
                <argument>${project.build.outputDirectory}</argument>
              </arguments>
              <executable>java</executable>
              <classpathScope>compile</classpathScope>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <encoding>utf-8</encoding>
          <debug>true</debug>
          <verbose>true</verbose>
          <fork>true</fork>
          <showWarnings>true</showWarnings>
          <showDeprecation>true</showDeprecation>
          <source>${base.java.version}</source>
          <target>${base.javac.version}</target>
          <useIncrementalCompilation>false</useIncrementalCompilation>
        </configuration>
        <executions>
          <execution>
            <id>anno</id>
            <phase>process-resources</phase>
            <goals>
              <goal>compile</goal>
            </goals>
            <configuration>
              <includes>
                <include>org/jruby/anno/FrameField.java</include>
                <include>org/jruby/anno/AnnotationBinder.java</include>
                <include>org/jruby/anno/JRubyMethod.java</include>
                <include>org/jruby/anno/FrameField.java</include>
                <include>org/jruby/CompatVersion.java</include>
                <include>org/jruby/runtime/Visibility.java</include>
                <include>org/jruby/util/CodegenUtils.java</include>
                <include>org/jruby/util/SafePropertyAccessor.java</include>
              </includes>
            </configuration>
          </execution>
          <execution>
            <id>default-compile</id>
            <phase>compile</phase>
            <goals>
              <goal>compile</goal>
            </goals>
            <configuration>
              <annotationProcessors>
                <annotationProcessor>org.jruby.anno.AnnotationBinder</annotationProcessor>
              </annotationProcessors>
              <compilerArgs>
                <compilerArg>-XDignore.symbol.file=true</compilerArg>
                <compilerArg>-J-Duser.language=en</compilerArg>
                <compilerArg>-J-Dfile.encoding=UTF-8</compilerArg>
                <compilerArg>-J-Xbootclasspath/p:${unsafe.jar}</compilerArg>
                <compilerArg>-J-Xmx${jruby.compile.memory}</compilerArg>
              </compilerArgs>
            </configuration>
          </execution>
          <execution>
            <id>populators</id>
            <phase>process-classes</phase>
            <goals>
              <goal>compile</goal>
            </goals>
            <configuration>
              <compilerArgs>
                <compilerArg>-XDignore.symbol.file=true</compilerArg>
                <compilerArg>-J-Duser.language=en</compilerArg>
                <compilerArg>-J-Dfile.encoding=UTF-8</compilerArg>
                <compilerArg>-J-Xbootclasspath/p:${unsafe.jar}</compilerArg>
                <compilerArg>-J-Xmx${jruby.compile.memory}</compilerArg>
              </compilerArgs>
              <includes>
                <include>org/jruby/gen/**/*.java</include>
              </includes>
            </configuration>
          </execution>
          <execution>
            <id>eclipse-hack</id>
            <phase>process-classes</phase>
            <goals>
              <goal>compile</goal>
            </goals>
            <configuration>
              <skipMain>true</skipMain>
               <includes>
                 <include>**/*.java</include>
               </includes>
             </configuration>
           </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <executions>
          <execution>
            <id>default-clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
            <configuration>
              <filesets>
                <fileset>
                  <directory>${project.build.sourceDirectory}</directory>
                  <includes>
                    <include>${Constants.java}</include>
                  </includes>
                </fileset>
              </filesets>
              <failOnError>false</failOnError>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>default-jar</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
	    <configuration>
	      <archive>
		<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
	      </archive>
	    </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <id>pack jruby.jar</id>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <relocations>
                <relocation>
                  <pattern>org.objectweb</pattern>
                  <shadedPattern>org.jruby.org.objectweb</shadedPattern>
                </relocation>
              </relocations>
              <outputFile>${jruby.basedir}/lib/jruby.jar</outputFile>
              <transformers>
                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                  <mainClass>org.jruby.Main</mainClass>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <forkCount>1C</forkCount>
          <reuseForks>false</reuseForks>
          <systemProperties>
            <jruby.compat.version>1.9</jruby.compat.version>
            <jruby.home>${basedir}/..</jruby.home>
          </systemProperties>
          <argLine>-Xmx${jruby.test.memory}</argLine>
          <argLine>-XX:MaxPermSize=${jruby.test.memory.permgen}</argLine>
          <argLine>-Dfile.encoding=UTF-8</argLine>
          <argLine>-Djruby.compile.mode=OFF</argLine>
          <argLine>-Djava.awt.headless=true</argLine>
          <includes>
            <include>org/jruby/test/MainTestSuite.java</include>
            <include>org/jruby/embed/**/*Test*.java</include>
          </includes>
          <additionalClasspathElements>
              <additionalClasspathElement>${basedir}/src/test/ruby</additionalClasspathElement>
          </additionalClasspathElements>
        </configuration>
      </plugin>
    </plugins>
    <resources>
      <resource>
        <directory>src/main/ruby</directory>
        <includes>
          <include>**/*rb</include>
        </includes>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
        <includes>
          <include>META-INF/**/*</include>
        </includes>
      </resource>
      <resource>
        <directory>${project.basedir}/src/main/resources</directory>
        <includes>
          <include>${Constants.java}</include>
        </includes>
        <targetPath>${project.build.sourceDirectory}</targetPath>
        <filtering>true</filtering>
      </resource>
    </resources>
    <pluginManagement>
      <plugins>
        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
        <plugin>
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
          <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>
                      properties-maven-plugin
                    </artifactId>
                    <versionRange>
                      [1.0-alpha-2,)
                    </versionRange>
                    <goals>
                      <goal>
                        read-project-properties
                      </goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore></ignore>
                  </action>
                </pluginExecution>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>
                      build-helper-maven-plugin
                    </artifactId>
                    <versionRange>[1.8,)</versionRange>
                    <goals>
                      <goal>add-source</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore></ignore>
                  </action>
                </pluginExecution>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>
                      exec-maven-plugin
                    </artifactId>
                    <versionRange>
                      [1.2.1,)
                    </versionRange>
                    <goals>
                      <goal>exec</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore></ignore>
                  </action>
                </pluginExecution>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>
                      org.apache.maven.plugins
                    </groupId>
                    <artifactId>
                      maven-dependency-plugin
                    </artifactId>
                    <versionRange>[2.8,)</versionRange>
                    <goals>
                      <goal>copy</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore></ignore>
                  </action>
                </pluginExecution>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>
                      org.apache.maven.plugins
                    </groupId>
                    <artifactId>
                      maven-clean-plugin
                    </artifactId>
                    <versionRange>[2.5,)</versionRange>
                    <goals>
                      <goal>clean</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore></ignore>
                  </action>
                </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
	<plugins>
	  <plugin>
	    <artifactId>maven-shade-plugin</artifactId>
	    <executions>
	      <execution>
		<id>pack jruby-noasm.jar</id>
		<phase>package</phase>
		<goals>
		  <goal>shade</goal>
		</goals>
		<configuration>
		  <shadedArtifactAttached>true</shadedArtifactAttached>
		  <shadedClassifierName>noasm</shadedClassifierName>
		  <artifactSet>
		    <includes>
		      <include>com.github.jnr:jnr-ffi</include>
		      <include>org.ow2.asm:*</include>
		    </includes>
		  </artifactSet>
		  <relocations>
		    <relocation>
		      <pattern>org.objectweb</pattern>
		      <shadedPattern>org.jruby.org.objectweb</shadedPattern>
		    </relocation>
		  </relocations>
		</configuration>
	      </execution>
	    </executions>
	  </plugin>
	</plugins>
      </build>
    </profile>
    <profile>
      <id>main</id>
      <build>
	<plugins>
	  <plugin>
	    <artifactId>maven-shade-plugin</artifactId>
	    <executions>
	      <execution>
		<id>pack jruby-noasm.jar</id>
		<phase>package</phase>
		<goals>
		  <goal>shade</goal>
		</goals>
		<configuration>
		  <shadedArtifactAttached>true</shadedArtifactAttached>
		  <shadedClassifierName>noasm</shadedClassifierName>
		  <artifactSet>
		    <includes>
		      <include>com.github.jnr:jnr-ffi</include>
		      <include>org.ow2.asm:*</include>
		    </includes>
		  </artifactSet>
		  <relocations>
		    <relocation>
		      <pattern>org.objectweb</pattern>
		      <shadedPattern>org.jruby.org.objectweb</shadedPattern>
		    </relocation>
		  </relocations>
		</configuration>
	      </execution>
	    </executions>
	  </plugin>
	</plugins>
      </build>
    </profile>
    <profile>
      <id>dist</id>
      <build>
	<plugins>
	  <plugin>
	    <artifactId>maven-shade-plugin</artifactId>
	    <executions>
	      <execution>
		<id>pack jruby-noasm.jar</id>
		<phase>package</phase>
		<goals>
		  <goal>shade</goal>
		</goals>
		<configuration>
		  <shadedArtifactAttached>true</shadedArtifactAttached>
		  <shadedClassifierName>noasm</shadedClassifierName>
		  <artifactSet>
		    <includes>
		      <include>com.github.jnr:jnr-ffi</include>
		      <include>org.ow2.asm:*</include>
		    </includes>
		  </artifactSet>
		  <relocations>
		    <relocation>
		      <pattern>org.objectweb</pattern>
		      <shadedPattern>org.jruby.org.objectweb</shadedPattern>
		    </relocation>
		  </relocations>
		</configuration>
	      </execution>
	    </executions>
	  </plugin>
	</plugins>
      </build>
    </profile>
    <profile>
      <id>jruby-jars</id>
      <build>
	<plugins>
	  <plugin>
	    <artifactId>maven-shade-plugin</artifactId>
	    <executions>
	      <execution>
		<id>pack jruby-noasm.jar</id>
		<phase>package</phase>
		<goals>
		  <goal>shade</goal>
		</goals>
		<configuration>
		  <shadedArtifactAttached>true</shadedArtifactAttached>
		  <shadedClassifierName>noasm</shadedClassifierName>
		  <artifactSet>
		    <includes>
		      <include>com.github.jnr:jnr-ffi</include>
		      <include>org.ow2.asm:*</include>
		    </includes>
		  </artifactSet>
		  <relocations>
		    <relocation>
		      <pattern>org.objectweb</pattern>
		      <shadedPattern>org.jruby.org.objectweb</shadedPattern>
		    </relocation>
		  </relocations>
		</configuration>
	      </execution>
	    </executions>
	  </plugin>
	</plugins>
      </build>
    </profile>
    <profile>
      <id>complete</id>
      <build>
	<plugins>
	  <plugin>
	    <artifactId>maven-shade-plugin</artifactId>
	    <executions>
	      <execution>
		<id>pack jruby-noasm.jar</id>
		<phase>package</phase>
		<goals>
		  <goal>shade</goal>
		</goals>
		<configuration>
		  <shadedArtifactAttached>true</shadedArtifactAttached>
		  <shadedClassifierName>noasm</shadedClassifierName>
		  <artifactSet>
		    <includes>
		      <include>com.github.jnr:jnr-ffi</include>
		      <include>org.ow2.asm:*</include>
		    </includes>
		  </artifactSet>
		  <relocations>
		    <relocation>
		      <pattern>org.objectweb</pattern>
		      <shadedPattern>org.jruby.org.objectweb</shadedPattern>
		    </relocation>
		  </relocations>
		</configuration>
	      </execution>
	    </executions>
	  </plugin>
	</plugins>
      </build>
    </profile>
    <profile>
      <id>all</id>
      <build>
	<plugins>
	  <plugin>
	    <artifactId>maven-shade-plugin</artifactId>
	    <executions>
	      <execution>
		<id>pack jruby-noasm.jar</id>
		<phase>package</phase>
		<goals>
		  <goal>shade</goal>
		</goals>
		<configuration>
		  <shadedArtifactAttached>true</shadedArtifactAttached>
		  <shadedClassifierName>noasm</shadedClassifierName>
		  <artifactSet>
		    <includes>
		      <include>com.github.jnr:jnr-ffi</include>
		      <include>org.ow2.asm:*</include>
		    </includes>
		  </artifactSet>
		  <relocations>
		    <relocation>
		      <pattern>org.objectweb</pattern>
		      <shadedPattern>org.jruby.org.objectweb</shadedPattern>
		    </relocation>
		  </relocations>
		</configuration>
	      </execution>
	    </executions>
	  </plugin>
	</plugins>
      </build>
    </profile>
    <profile>
      <id>snapshots</id>
      <build>
	<plugins>
	  <plugin>
	    <artifactId>maven-shade-plugin</artifactId>
	    <executions>
	      <execution>
		<id>pack jruby-noasm.jar</id>
		<phase>package</phase>
		<goals>
		  <goal>shade</goal>
		</goals>
		<configuration>
		  <shadedArtifactAttached>true</shadedArtifactAttached>
		  <shadedClassifierName>noasm</shadedClassifierName>
		  <artifactSet>
		    <includes>
		      <include>com.github.jnr:jnr-ffi</include>
		      <include>org.ow2.asm:*</include>
		    </includes>
		  </artifactSet>
		  <relocations>
		    <relocation>
		      <pattern>org.objectweb</pattern>
		      <shadedPattern>org.jruby.org.objectweb</shadedPattern>
		    </relocation>
		  </relocations>
		</configuration>
	      </execution>
	    </executions>
	  </plugin>
	</plugins>
      </build>
    </profile>
    <profile>
      <id>jruby.bash</id>
      <activation>
        <file>
          <missing>../bin/jruby</missing>
        </file>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
              <execution>
                <id>copy</id>
                <phase>package</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <configuration>
                  <tasks>
                    <exec executable="/bin/sh" osfamily="unix">
                      <arg line="-c 'cp &quot;${jruby.basedir}/bin/jruby.bash&quot; &quot;${jruby.basedir}/bin/jruby&quot;'" />
                    </exec>
                    <chmod file="${jruby.basedir}/bin/jruby" perm="755" />
                  </tasks>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>native</id>
      <activation>
        <file>
          <!-- can not use properties here -->
          <missing>../lib/jni</missing>
        </file>
      </activation>
      <build>
        <plugins>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>unzip native</id>
            <phase>process-classes</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <excludes>META-INF,META-INF/*</excludes>
              <artifactItems>
                <artifactItem>
                  <groupId>com.github.jnr</groupId>
                  <artifactId>jffi</artifactId>
                  <version>${jffi.version}</version>
                  <type>jar</type>
                  <classifier>native</classifier>
                  <overWrite>false</overWrite>
                  <outputDirectory>${jruby.basedir}/lib</outputDirectory>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>test</id>
      <properties>
        <maven.test.skip>false</maven.test.skip>
      </properties>
    </profile>
    <profile>
      <id>default</id>
      <!-- just leave it since travis might need it -->
    </profile>
    <profile>
      <id>tzdata</id>
      <activation>
        <property>
          <name>tzdata.version</name>
        </property>
      </activation>
      <properties>
        <tzdata.jar.version>${tzdata.version}</tzdata.jar.version>
        <tzdata.scope>runtime</tzdata.scope>
      </properties>
    </profile>
  </profiles>
</project>
New to GrepCode? Check out our FAQ X