<?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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>gem-parent-mojo</artifactId>
    <groupId>de.saumya.mojo</groupId>
    <version>1.0.4</version>
    <relativePath>../gem-parent-mojo/pom.xml</relativePath>
  </parent>
  <artifactId>tests-parent-mojo</artifactId>
  <packaging>pom</packaging>
  <name>Tests Mojo Parent</name>
  <dependencies>
    <dependency>
      <groupId>${project.parent.groupId}</groupId>
      <artifactId>runit-maven-plugin</artifactId>
      <version>${project.parent.version}</version>
      <type>maven-plugin</type>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
	<groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-dependency-plugin</artifactId>
         <executions>     
	   <execution>
	     <id>src-dependencies</id>
	     <phase>generate-sources</phase>
	     <goals>
	       <goal>unpack-dependencies</goal>
	     </goals>
	     <configuration>
	       <includeGroupIds>de.saumya.mojo</includeGroupIds>
	       <includeArtifactIds>
		 jruby-maven-plugin,gem-maven-plugin,runit-maven-plugin
	       </includeArtifactIds>
	       <includes>
		 de/saumya/mojo/jruby/AbstractJRubyMojo.java,
		 de/saumya/mojo/gem/AbstractGemMojo.java,
		 de/saumya/mojo/tests/AbstractTestMojo.java
	       </includes>
	       <classifier>sources</classifier>
	       <outputDirectory>${project.build.directory}/sources</outputDirectory>
	     </configuration>
	   </execution>
         </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <excludes>
	    <exclude>de/saumya/mojo/jruby/**</exclude>
	    <exclude>de/saumya/mojo/gem/**</exclude>
	    <exclude>de/saumya/mojo/tests/**</exclude>
	  </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
