Created
June 7, 2016 09:04
-
-
Save mkristian/52f1116aff149d7ea30e936221284e36 to your computer and use it in GitHub Desktop.
This file contains 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
$ gem install ruby-maven | |
$ rmvn package | |
$ java -jar pkg/*.jar ./myscript.rb |
This file contains 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
packaging :jrubyJar | |
gemfile | |
jarfile | |
# fixes some weird dependency problem | |
jar 'log4j:log4j:1.2.17' | |
resource :includes => ['myscript.rb'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mkristian actually I am still having one last problem… lol sorry to keep bugging you.
My project includes 7 “entrypoint” scripts, i.e. scripts in
bin
. In most ways each one is a discrete program; they’re only in the same project because they share many dependencies and much context and are structurally similar.Anyway, 6 of them are working fine, but one is not; it’s having trouble locating a gem:
The gem —
paseserver
is the only one of our gems that’s being referenced from a private git repository rather thanrubygems.org
. I doubt that’s a coincidence.The relevant line in
Gemfile
:The corresponding section in
Gemfile.lock
:And when I run
rmvn clean package
I can definitely see that the gem is being downloaded, installed, copied, etc:and then there’s many, many lines that look like
[INFO] Copying file gems/{path}
but the files of thepaseserver
gem never show up.And finally when I explode the JAR artifact I can’t find the gem in the dir
gems
or anywhere else:😕
Any idea what’s happening here? I’m so close, I’d love to wrap this up! Thank you!
(If I should just open up an issue somewhere I’d be happy to do so; it’s just unclear to me which repo would be appropriate.)