<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.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>

  <groupId>de.saumya.mojo</groupId>
  <artifactId>maven-tools</artifactId>
  <version>0.32.1</version>
  <name><![CDATA[helpers for maven related tasks]]></name>
  <packaging>jar</packaging>
  <description><![CDATA[adds versions conversion from rubygems to maven and vice versa, ruby DSL for POM (Project Object Model from maven), pom generators, etc]]></description>
  <url>github.com/torquebox/maven-tools</url>
  <developers>
    <developer>
      <id>m_dot_kristian_at_web_dot_de</id>
      <name>Christian Meier</name>
      <email>m.kristian@web.de</email>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>MIT</name>
      <url>./MIT</url>
      <distribution>repo</distribution>
    </license>
    <license>
      <name>MIT-LICENSE</name>
      <url>./MIT-LICENSE</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <repositories>
    <repository>
      <id>rubygems-releases</id>
      <url>http://rubygems-proxy.torquebox.org/releases</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>rubygems-releases</id>
      <url>http://rubygems-proxy.torquebox.org/releases</url>
    </pluginRepository>
  </pluginRepositories>
  <scm>
    <connection>scm:git:git://github.com/torquebox/maven-tools.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/torquebox/maven-tools.git</developerConnection>
    <url>github.com/torquebox/maven-tools</url>
  </scm>
  <dependencies>
    <dependency>
      <groupId>rubygems</groupId>
      <artifactId>rake</artifactId>
      <type>gem</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>rubygems</groupId>
      <artifactId>minitest</artifactId>
      <type>gem</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>rubygems</groupId>
      <artifactId>rspec</artifactId>
      <type>gem</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>rubygems</groupId>
      <artifactId>rspec-core</artifactId>
      <type>gem</type>
    </dependency>
    <dependency>
      <groupId>rubygems</groupId>
      <artifactId>rspec-expectations</artifactId>
      <type>gem</type>
    </dependency>
    <dependency>
      <groupId>rubygems</groupId>
      <artifactId>diff-lcs</artifactId>
      <type>gem</type>
    </dependency>
    <dependency>
      <groupId>rubygems</groupId>
      <artifactId>rspec-mocks</artifactId>
      <type>gem</type>
    </dependency>
    <dependency>
      <groupId>rubygems</groupId>
      <artifactId>copyright-header</artifactId>
      <type>gem</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>rubygems</groupId>
      <artifactId>bundler</artifactId>
      <type>gem</type>
    </dependency>
  </dependencies>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>rubygems</groupId>
        <artifactId>maven-tools</artifactId>
        <version>0.32.1</version>
        <type>gem</type>
      </dependency>
      <dependency>
        <groupId>rubygems</groupId>
        <artifactId>copyright-header</artifactId>
        <version>1.0.7</version>
        <type>gem</type>
      </dependency>
      <dependency>
        <groupId>rubygems</groupId>
        <artifactId>diff-lcs</artifactId>
        <version>1.1.3</version>
        <type>gem</type>
      </dependency>
      <dependency>
        <groupId>rubygems</groupId>
        <artifactId>minitest</artifactId>
        <version>4.5.0</version>
        <type>gem</type>
      </dependency>
      <dependency>
        <groupId>rubygems</groupId>
        <artifactId>rake</artifactId>
        <version>10.0.3</version>
        <type>gem</type>
      </dependency>
      <dependency>
        <groupId>rubygems</groupId>
        <artifactId>rspec</artifactId>
        <version>2.7.0</version>
        <type>gem</type>
      </dependency>
      <dependency>
        <groupId>rubygems</groupId>
        <artifactId>rspec-core</artifactId>
        <version>2.7.1</version>
        <type>gem</type>
      </dependency>
      <dependency>
        <groupId>rubygems</groupId>
        <artifactId>rspec-expectations</artifactId>
        <version>2.7.0</version>
        <type>gem</type>
      </dependency>
      <dependency>
        <groupId>rubygems</groupId>
        <artifactId>rspec-mocks</artifactId>
        <version>2.7.0</version>
        <type>gem</type>
      </dependency>
      <dependency>
        <groupId>rubygems</groupId>
        <artifactId>bundler</artifactId>
        <version>1.1.4</version>
        <type>gem</type>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <properties>
    <gem.home>${project.build.directory}/rubygems</gem.home>
    <gem.path>${project.build.directory}/rubygems</gem.path>
    <jruby.18and19>true</jruby.18and19>
    <jruby.plugins.version>0.29.2</jruby.plugins.version>
    <jruby.version>1.7.2</jruby.version>
    <jruby.versions>1.5.6,1.6.8,1.7.2</jruby.versions>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <version>2.5</version>
        <configuration>
          <filesets>
            <fileset>
              <directory>./</directory>
              <includes>
                <include>Gemfile.lock</include>
              </includes>
            </fileset>
          </filesets>
        </configuration>
      </plugin>
      <plugin>
        <groupId>de.saumya.mojo</groupId>
        <artifactId>bundler-maven-plugin</artifactId>
        <version>${jruby.plugins.version}</version>
      </plugin>
      <plugin>
        <groupId>de.saumya.mojo</groupId>
        <artifactId>gem-maven-plugin</artifactId>
        <version>${jruby.plugins.version}</version>
        <configuration>
          <files>lib/maven_tools.rb,lib/maven-tools.rb,lib/maven/tools/coordinate.rb,lib/maven/tools/execute_in_phase.rb,lib/maven/tools/version.rb,lib/maven/tools/jarfile.rb,lib/maven/tools/rails_project.rb,lib/maven/tools/gem_project.rb,lib/maven/tools/pom_generator.rb,lib/maven/tools/gemfile_lock.rb,lib/maven/tools/minimal_project.rb,lib/maven/tools/versions.rb,lib/maven/model/utils.rb,lib/maven/model/model.rb,lib/maven/model/dependencies.rb,spec/coordinate_spec.rb,spec/jarfile_spec.rb,rspec/maven,rspec/maven/tools,rspec/maven/tools/Gemfile.withlock,rspec/maven/tools/Gemfile.lockfile.lock,rspec/maven/tools/rails_project_spec.rb,rspec/maven/tools/Gemfile.nolock,rspec/maven/tools/maven-tools.gemspec,rspec/maven/tools/Gemfile.groups,rspec/maven/tools/Gemfile.minimal,rspec/maven/tools/spec_helper.rb,rspec/maven/tools/Gemfile.lockfile,rspec/maven/tools/no-deps.gemspec,rspec/maven/tools/Gemfile.ignored,rspec/maven/tools/Gemfile.rails,rspec/maven/tools/gem_project_spec.rb,rspec/maven/tools/Gemfile.gems,rspec/maven/tools/Gemfile.simple,rspec/maven/tools/Jarfile.with,rspec/maven/tools/minimal.gemspec,rspec/maven/tools/Gemfile.withlock.lock,rspec/maven/tools/Jarfile.with.lock,rspec/maven/tools/Jarfile.without,rspec/maven/tools/deps.gemspec,rspec/maven/model,rspec/maven/model/model_spec.rb,rspec/maven/model/dependencies_spec.rb,MIT-LICENSE,README.md</files>
          <gemspec>maven-tools.gemspec</gemspec>
          <testFiles>spec/coordinate_spec.rb,spec/jarfile_spec.rb,rspec/maven,rspec/maven/tools,rspec/maven/tools/Gemfile.withlock,rspec/maven/tools/Gemfile.lockfile.lock,rspec/maven/tools/rails_project_spec.rb,rspec/maven/tools/Gemfile.nolock,rspec/maven/tools/maven-tools.gemspec,rspec/maven/tools/Gemfile.groups,rspec/maven/tools/Gemfile.minimal,rspec/maven/tools/spec_helper.rb,rspec/maven/tools/Gemfile.lockfile,rspec/maven/tools/no-deps.gemspec,rspec/maven/tools/Gemfile.ignored,rspec/maven/tools/Gemfile.rails,rspec/maven/tools/gem_project_spec.rb,rspec/maven/tools/Gemfile.gems,rspec/maven/tools/Gemfile.simple,rspec/maven/tools/Jarfile.with,rspec/maven/tools/minimal.gemspec,rspec/maven/tools/Gemfile.withlock.lock,rspec/maven/tools/Jarfile.with.lock,rspec/maven/tools/Jarfile.without,rspec/maven/tools/deps.gemspec,rspec/maven/model,rspec/maven/model/model_spec.rb,rspec/maven/model/dependencies_spec.rb</testFiles>
        </configuration>
        <executions>
          <execution>
            <id>in_phase_deploy</id>
            <phase>deploy</phase>
            <goals>
              <goal>push</goal>
            </goals>
            <configuration>
              <gem>${project.build.directory}/maven-tools-0.32.1.gem</gem>
            </configuration>
          </execution>
          <execution>
            <id>in_phase_generate_sources</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>execute_in_phase</goal>
            </goals>
            <configuration>
              <file>Mavenfile</file>
              <phase>generate-sources</phase>
            </configuration>
          </execution>
          <execution>
            <id>in_phase_package</id>
            <phase>package</phase>
            <goals>
              <goal>package</goal>
            </goals>
            <configuration>
              <gemspec>maven-tools.gemspec</gemspec>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>rubygems</groupId>
            <artifactId>jruby-openssl</artifactId>
            <version>0.8.2</version>
            <type>gem</type>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <groupId>de.saumya.mojo</groupId>
        <artifactId>minitest-maven-plugin</artifactId>
        <version>${jruby.plugins.version}</version>
        <configuration>
          <minispecDirectory>spec/*spec.rb</minispecDirectory>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>spec</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>de.saumya.mojo</groupId>
        <artifactId>rspec-maven-plugin</artifactId>
        <version>${jruby.plugins.version}</version>
        <configuration>
          <specSourceDirectory>rspec</specSourceDirectory>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>test</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
          <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
                <pluginExecution>
                  <action>
                    <ignore></ignore>
                  </action>
                  <pluginExecutionFilter>
                    <artifactId>bundler-maven-plugin</artifactId>
                    <goals>
                      <goal>install</goal>
                    </goals>
                    <groupId>de.saumya.mojo</groupId>
                    <versionRange>[0,)</versionRange>
                  </pluginExecutionFilter>
                </pluginExecution>
                <pluginExecution>
                  <action>
                    <ignore></ignore>
                  </action>
                  <pluginExecutionFilter>
                    <artifactId>gem-maven-plugin</artifactId>
                    <goals>
                      <goal>initialize</goal>
                    </goals>
                    <groupId>de.saumya.mojo</groupId>
                    <versionRange>[0,)</versionRange>
                  </pluginExecutionFilter>
                </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <resources>
      <resource>
        <directory>${project.basedir}/lib</directory>
      </resource>
    </resources>
  </build>
  <profiles>
    <profile>
      <id>executable</id>
      <dependencies>
        <dependency>
          <groupId>de.saumya.mojo</groupId>
          <artifactId>gem-assembly-descriptors</artifactId>
          <version>${jruby.plugins.version}</version>
          <type>jar</type>
          <scope>runtime</scope>
        </dependency>
      </dependencies>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.3</version>
            <configuration>
              <archive>
                <manifest>
                  <mainClass>de.saumya.mojo.assembly.Main</mainClass>
                </manifest>
              </archive>
              <descriptorRefs>
                <descriptorRef>jar-with-dependencies-and-gems</descriptorRef>
              </descriptorRefs>
            </configuration>
            <executions>
              <execution>
                <id>in_phase_package</id>
                <phase>package</phase>
                <goals>
                  <goal>assembly</goal>
                </goals>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>de.saumya.mojo</groupId>
                <artifactId>gem-assembly-descriptors</artifactId>
                <version>${jruby.plugins.version}</version>
                <type>jar</type>
              </dependency>
            </dependencies>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
