Rawr-like ability to use jruby-maven-plugins to create Java .jar with gems?

Is there a way I can use the
package up all of the gem dependencies into the .jar I create for a
project? If I want to create an assembly using the Maven Assembly
I can’t use the descriptorRef of
bundle it up, since it doesn’t know how to package .gem types:

[ERROR] Failed to execute goal
(default-cli) on
project ruby-maven-gems: Failed to create assembly: Error adding
for ‘rubygems:rubyzip2:gem:2.0.1’ to archive: Error adding archived
file-set. PlexusIoResourceCollection not found for:
such archiver: ‘gem’. -> [Help 1]

So I was just wondering if there was a way to create something like
rawrhttp://rawr.rubyforge.orgdoes, but for Maven projects?

-Nick K.

On Wed, Feb 16, 2011 at 11:56 PM, Nick K. [email protected] wrote:

Is there a way I can use the jruby-maven-plugins to package up all of the
gem dependencies into the .jar I create for a Java project?

I guess I just do not know how you want to pack them. just zip up all
the gem files as they are ?

you could set a resource pointing to

see https://gist.github.com/830212

or unpacked gems like you get it via gems install ?

then you use ${project.build.directory}/rubygems/ for the resource

sorry, I am a bit ignorant in that matter . . .

/Users/klauer/.m2/repository/rubygems/rubyzip2/2.0.1/rubyzip2-2.0.1.gem: No
such archiver: ‘gem’. -> [Help 1]

probably it is possible to add the right archiver for gems, but first
I need to understand what exactly is needed :wink:

regards, Kristian

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs