InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Maven and JRuby Roundup: Maven_gem Brings Maven Libs to RubyGems, GemCutter Inspires JavaGems

Posted by Mirko Stocker on Dec 18, 2009

Sections
Development
Topics
Java ,
RubyGems ,
JRuby ,
Compilers ,
Ruby
Tags
Maven ,
Deployment ,
Clojure ,
RubyGems

"Ruby is about to gain thousands of gems", Charles Nutter twittered a few days ago. What has happened? Last year, Charles started the maven_gem project, "a RubyGems plugin (and a utility) to install Maven artifacts as RubyGems", and he now apparently succeeded in making maven artifacts installable as RubyGems, as this shell session shows. This really would make a slew of libraries available to be used in JRuby projects.

Contrary to what's written in the maven_gem Readme file, it seems to be possible to just create a Gem without installing it.

A related new project is JavaGems. It's goal is to be a simpler alternative to Maven for JVM languages, not a replacement, as noted in their FAQ:

Maven is fine. It's an incredibly powerful tool with a lot more features than JavaGems will probably ever have. If Maven is working for you, keep using Maven. The problem is, some of us have smaller needs and don't need all the power of Maven, but rather, need something more simple. JavaGems aims to fill that gap. It's not trying to replace Maven, but rather, complement it.

JavaGems is essentially a Gemcutter instance providing, at the moment, artifacts such as JRuby, Clojure and several Scala libraries. It uses RubyGems and Bundler for dependency management. To see JavaGems in action, this blog post shows how to install Clojure, Compojure (a Clojure web framework) and get a "Hello World" example running in a few easy steps.

In other JRuby related news, JRuby's Java integration will soon be able to generate classes that implement Java interfaces and extend Java classes, as shown in this JRuby example.

For more information on the interaction between Clojure and JRuby, see JRuby and Clojure - A Good Match? on InfoQ.

Don't forget about buildr by pub cog Posted
  1. Back to top

    Don't forget about buildr

    by pub cog

    Just wanted to point that a ruby/maven brigde already exist with project: buildr.apache.org

    From the official documentation: buildr.apache.org/artifacts.html
    "We designed Buildr to work as a drop-in replacement for Maven 2.0, and share artifacts through the same local and remote repositories."

Educational Content

Jesper Boeg on Priming Kanban

In this interview, Jesper Boeg, author of the new InfoQ book – Priming Kanban, discusses the keys to using Kanban effectively, and how to get started if you are currently using other approaches.

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.