Permalink
Browse files

skip gem installation just before packaging

  • Loading branch information...
1 parent aac46b4 commit 274b73239556ed7f985788b6fd4152154afb5219 @mkristian committed Aug 12, 2012
Showing with 31 additions and 16 deletions.
  1. +31 −16 pom.xml
View
47 pom.xml
@@ -26,29 +26,20 @@
<packaging>gem</packaging>
<name>ruby wrapper around maven and more</name>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>rubygems-releases</id>
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
+ </pluginRepository>
+ </pluginRepositories>
+
<repositories>
<repository>
<id>rubygems-releases</id>
<url>http://rubygems-proxy.torquebox.org/releases</url>
</repository>
</repositories>
- <dependencies>
- <!-- get the gems so `gem build` works -->
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>thor</artifactId>
- <version>0.14.6</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>maven-tools</artifactId>
- <version>0.29.3</version>
- <type>gem</type>
- </dependency>
- </dependencies>
-
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.version>3.0.4</maven.version>
@@ -91,10 +82,34 @@
<artifactId>gem-maven-plugin</artifactId>
<version>0.29.0</version>
<extensions>true</extensions>
+ <executions>
+ <execution>
+ <id>default-initialize</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>initialize</goal>
+ </goals>
+ </execution>
+ </executions>
<configuration>
<gemspec>${project.basedir}/ruby-maven.gemspec</gemspec>
<includeOpenSSL>true</includeOpenSSL>
</configuration>
+ <dependencies>
+ <!-- get the gems so `gem build` works -->
+ <dependency>
+ <groupId>rubygems</groupId>
+ <artifactId>thor</artifactId>
+ <version>0.14.6</version>
+ <type>gem</type>
+ </dependency>
+ <dependency>
+ <groupId>rubygems</groupId>
+ <artifactId>maven-tools</artifactId>
+ <version>0.29.3</version>
+ <type>gem</type>
+ </dependency>
+ </dependencies>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>

0 comments on commit 274b732

Please sign in to comment.