RMaven

Rakeからmavenのコマンドを実行するためのライブラリです。RUby/JRubyがインストールされていれば、インストールは簡単。

# gem install rmaven

JRubyならjruby -S をつければOK。

これで pom.xmlのあるディレクトリに

require 'rake'
require 'rubygems'
require 'rmaven'
require 'tasks/mvn'

という中身のRakefileを作ってあげると、

$ rake -T

で、

rake java:clean                    # remove all files generated by the previous build.
rake java:compile                  # compile the source code of the project.. [binding] compiler:compile
rake java:deploy                   # done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.. [binding] deploy:deploy
rake java:generate-resources       # generate resources for inclusion in the package.. [binding] plugin:descriptor
rake java:generate-sources         # generate any source code for inclusion in compilation.
rake java:generate-test-resources  # create resources for testing.
rake java:generate-test-sources    # generate any test source code for inclusion in compilation.
rake java:install                  # install the package into the local repository, for use as a dependency in other projects locally.. [binding] install:install
rake java:integration-test         # process and deploy the package if necessary into an environment where integration tests can be run.
rake java:package                  # take the compiled code and package it in its distributable format, such as a JAR.. [binding] site:attach-descriptor
rake java:plugin                   # list mvn plugins.
rake java:plugin:detect            # search remote plugin and show the help .
rake java:plugin:execute           # execute mvn plugin.
rake java:plugin:goals             # show mvn plugins medium help.
rake java:plugin:params            # show mvn plugins full help.
rake java:post-clean               # executes processes needed to finalize the project cleaning
rake java:pre-clean                # executes processes needed prior to the actual project cleaning
rake java:site                     # generates the project's site documentation.
rake java:site-deploy              # deploys the generated site documentation to the specified web server.
rake java:test                     # run tests using a suitable unit testing framework.
rake java:test-compile             # compile the test source code into the test destination directory.
rake java:validate                 # validate the project is correct and all necessary information is available.
rake java:verify                   # run any checks to verify the package is valid and meets quality criteria.
rake mvn                           # show help about mvn task
rake mvn:generate_yaml             # generate example setting yaml for rmaven
rake mvn:usage                     # show usage

っていうようなタスク一覧を表示できます。
通常のmavenのゴールに加えて、mavenプラグインを探すためのタスクなんかもありますんで、Mavenのコマンドをついつい忘れてしまう、という方にお勧めです。