mkristian / jbundler

bundler support for jars for jruby
MIT License
210 stars 39 forks source link

jbundle tree fails with “Could not resolve dependencies for project no_group_id_given:jbundler:jar:0.0.0” #68

Closed aviflax closed 8 years ago

aviflax commented 8 years ago
$ jbundle tree
...
[ERROR] Failed to execute goal on project jbundler: Could not resolve dependencies for project no_group_id_given:jbundler:jar:0.0.0: The following artifacts could not be resolved: javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not transfer artifact javax.jms:jms:jar:1.1 from/to java.net (https://maven-repository.dev.java.net/nonav/repository): Cannot access https://maven-repository.dev.java.net/nonav/repository with type legacy using the available connector factories: BasicRepositoryConnectorFactory: Cannot access https://maven-repository.dev.java.net/nonav/repository with type legacy using the available layout factories: Maven2RepositoryLayoutFactory: Unsupported repository layout legacy -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Errno::ENOENT: No such file or directory - /Users/avi/dev_local/my_project/my_component/pkg/tree.txt
            read at org/jruby/RubyIO.java:3581
         show_it at /Users/avi/.rbenv/versions/jruby-9.0.5.0/lib/ruby/gems/shared/gems/jbundler-0.9.2/lib/jbundler/tree.rb:28
            tree at /Users/avi/.rbenv/versions/jruby-9.0.5.0/lib/ruby/gems/shared/gems/jbundler-0.9.2/lib/jbundler/cli.rb:59
             run at /Users/avi/.rbenv/versions/jruby-9.0.5.0/lib/ruby/gems/shared/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/command.rb:27
  invoke_command at /Users/avi/.rbenv/versions/jruby-9.0.5.0/lib/ruby/gems/shared/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126
        dispatch at /Users/avi/.rbenv/versions/jruby-9.0.5.0/lib/ruby/gems/shared/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor.rb:359
           start at /Users/avi/.rbenv/versions/jruby-9.0.5.0/lib/ruby/gems/shared/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/base.rb:440
           <top> at /Users/avi/.rbenv/versions/jruby-9.0.5.0/lib/ruby/gems/shared/gems/jbundler-0.9.2/bin/jbundle:47
            load at org/jruby/RubyKernel.java:955
           <top> at /Users/avi/.rbenv/versions/jruby-9.0.5.0/bin/jbundle:23

My Jarfile:

repository :confluent, "http://packages.confluent.io/maven/"

jar 'io.confluent:kafka-avro-serializer', '~>2.0.0'
jar 'org.apache.samza:samza-core_2.10', '~>0.10.0'
jar 'org.apache.samza:samza-kafka_2.9.2',   '~>0.7.0'

My Gemfile:

group :build do
  gem 'jbundler', '~> 0.9.2'
  gem 'warbler', '~> 2.0.0.rc2', require: false
end
mkristian commented 8 years ago

tried to put the same into a regular maven and it resolves OK. does jbundler create the lock file ?

aviflax commented 8 years ago

Huh, it’s working now for me. I’m not sure why or what I changed. Thanks for your help!