-
-
Save anildigital/1238140 to your computer and use it in GitHub Desktop.
jruby maven3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:~$ rvm use jruby | |
Using /home/saito/.rvm/gems/jruby-1.6.2 | |
:~$ gem i mvn:org.slf4j:slf4j-simple | |
Successfully installed mvn:org.slf4j:slf4j-api-1.6.2-java | |
Successfully installed mvn:org.slf4j:slf4j-simple-1.6.2-java | |
2 gems installed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jruby-1.6.2 :002 > require 'java' | |
=> true | |
jruby-1.6.2 :003 > require 'rubygems' | |
=> true | |
jruby-1.6.2 :004 > require 'mvn:org.slf4j:slf4j-simple' | |
=> true | |
jruby-1.6.2 :005 > logger = org.slf4j.LoggerFactory.getLogger("maven3") | |
=> #<Java::OrgSlf4jImpl::SimpleLogger:0x487bd46a> | |
jruby-1.6.2 :006 > logger.info("maven3 & jruby ") | |
27740 [main] INFO maven3 - maven3 & jruby | |
=> nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment