-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependent jars specified in gem via :path option not added to classpath #43
Comments
Another question. I'm trying to install jar 'org.eclipse:jgit', '3.4.1.201406201815-r' I'm getting this error which makes no sense to me:
Why is it looking in some torquebox release repo instead of maven central?? |
Ah ok, never mind for the second question, I had the groupId wrong, sorry! |
yes, maven is a bit confusing if there are more then one repo defined and |
I guess a new version of jar-dependencies will do - I push a new gem either today or tomorrow |
Hey @mkristian, thanks for your response. I'm still seeing the issue I first commented on above, can you advise? |
not clear ! the one with the gem and :path options ? or the wrong groupId ? |
Oh sorry yes, the one with the gem and :path options. |
you said with your patch it worked ? so what is going wrong after your patched applied ? let me see if I can reproduce it . . |
I see some strange "delete missing errors" on gemspec without jar dependenices using path options. you can use the fallback
which uses old code from jbundler-0.5.5 on at least the error I am seeing I can fix. |
mkristian/jar-dependencies@6e80dbf should help in your case. just pushed jar-dependencies-0.0.6.gem - so if you update this then |
Hey @mkristian thanks! I don't see the error anymore, but the jar dependencies still aren't carrying over. The original problem here wasn't the bug in jar-dependencies - it was the :path issue I commented on first. I've specified a dependency via rosette-core rosette-server If I change directory into
Notice that under |
This still doesn't work even if I add the requirement in the gemspec. |
OK - I get closer to what you are doing ;) well, Jarfile is not transitive in the same manner as Gemfile is not. i.e. if you want to have jar dependencies "associated" with your gem you need to add them to your gemspec:
see also https://github.com/mkristian/jar-dependencies/blob/master/example/example.gemspec#L18 that should carry over the dependencies to your rosette-server |
Ok, that makes sense. Unfortunately I already tried adding the requirement to the gemspec and it still doesn't work :( |
yes, I just saw you message popping up when I click the send button ;) I can confirm the problem - yes, it does not show the dependent jars. I |
Thank you! |
just pushed a new jbundler gem, but make sure you get updates on jar-dependencies and maven-tools gems as well. let me know if you still have problems ! |
Wonderful thank you! I'll give it a try this afternoon :) |
Thanks @mkristian this works for me, apologies for not commenting on the issue :) |
no problem - I guessed/hoped it is working for you ;) |
Hey @mkristian,
I have two projects, rosette-server and rosette-core. The rosette-core library has a Jarfile that includes a single dependency (
org.eclipse:jgit
). I have added rosette-core to rosette-server's Gemfile and runjbundle
. At first, I got aTypeError
because something was trying to dup anil
, but I tracked down the cause and submitted a pull request to the jar-dependencies gem. After patching jar-dependencies, I tried runningjbundle
again. This time there were no errors, but jgit wasn't detected or bundled (i.e. it wasn't downloaded and it isn't in rosette-server's classpath). Any idea why this isn't working?Here's how the dependency looks in my Gemfile:
The text was updated successfully, but these errors were encountered: