rubygems / bundler

Manage your Ruby application's gem dependencies
https://bundler.io
MIT License
4.88k stars 1.99k forks source link

Error while installing ruby-maven for https://github.com/awslabs/logstash-input-dynamodb/ #6596

Closed RTG8055 closed 6 years ago

RTG8055 commented 6 years ago

--- ERROR REPORT TEMPLATE -------------------------------------------------------

Error Report

Questions

Please fill out answers to these questions, it'll help us figure out why things are going wrong.

Backtrace

NoMethodError: undefined method `remotes' for #<Bundler::Source::Gemspec:0x22104 source at `.`>

In Gemfile:
  logstash-input-dynamodb

  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer/gem_installer.rb:47:in `gem_install_message'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer/gem_installer.rb:39:in `failure_message'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer/gem_installer.rb:34:in `specific_failure_message'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer/gem_installer.rb:25:in `install_from_spec'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer/parallel_installer.rb:162:in `do_install'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer/parallel_installer.rb:147:in `install_serially'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer/parallel_installer.rb:102:in `call'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer/parallel_installer.rb:78:in `call'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer.rb:266:in `install_in_parallel'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer.rb:202:in `install'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer.rb:91:in `run'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/process_lock.rb:19:in `lock'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer.rb:72:in `run'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/installer.rb:25:in `install'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/cli/install.rb:65:in `run'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/cli.rb:224:in `install'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/settings.rb:136:in `temporary'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/cli.rb:223:in `install'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/cli.rb:27:in `dispatch'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/cli.rb:18:in `start'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/exe/bundle:30:in `(root)'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
  /usr/share/jruby/lib/ruby/gems/shared/gems/bundler-1.16.2/exe/bundle:22:in `(root)'
  org/jruby/RubyKernel.java:1059:in `load'
  /usr/local/bin/bundle:23:in `(root)'

Environment

Bundler       1.16.2
  Platforms   ruby, universal-java-1.8
Ruby          1.9.3p551 (2015-10-23 revision 48406) [java]
  Full Path   /usr/share/jruby/bin/jruby
  Config Dir  /usr/share/jruby/etc
RubyGems      2.4.8
  Gem Home    /usr/share/jruby/lib/ruby/gems/shared
  Gem Path    /usr/share/jruby/lib/ruby/gems/shared:/home/rahul/.gem/jruby/1.9:/usr/lib/universal-java1.8/rubygems-integration/1.9:/usr/share/rubygems-integration/1.9:/usr/share/rubygems-integration/all
  User Path   /home/rahul/.gem/jruby/1.9
  Bin Dir     /usr/local/bin
OpenSSL       
  Compiled    JRuby-OpenSSL 0.9.11
  Cert File   /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
  Cert Dir    /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security
Tools         
  Git         2.7.4
  RVM         not installed
  rbenv       not installed
  chruby      not installed
Gem.ruby      /usr/share/jruby/bin/jruby
bundle #!     /usr/bin/env jruby

Bundler Build Metadata

Built At          2018-05-16
Git SHA           9f7bf0ac3
Released Version  true

Gemfile

Gemfile

source 'https://rubygems.org'
gemspec

Gemfile.lock

Gemspecs

logstash-input-dynamodb.gemspec

Gem::Specification.new do |s|
  s.name = 'logstash-input-dynamodb'
  s.version = '1.0.0'
  s.licenses = ['Apache License (2.0)']
  s.summary = "This input plugin scans a specified DynamoDB table and then reads changes to a DynamoDB table from the associated DynamoDB Stream."
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
  s.authors = ["Amazon"]
  s.email = 'dynamodb-interest@amazon.com'
  s.homepage = "https://github.com/logstash-plugins/logstash-input-dynamodb"
  s.require_paths = ["lib"]
  s.platform = 'java'

  # Files
  s.files = `git ls-files`.split($\)
   # Tests
  s.test_files = s.files.grep(%r{^(test|spec|features)/})

  # Special flag to let us know this is actually a logstash plugin
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }

  # Gem dependencies
  s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 2.0.0'
  s.add_runtime_dependency "logstash-codec-json"
  s.add_runtime_dependency "activesupport-json_encoder"
  # Jar dependencies
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-elasticbeanstalk', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-ses', '1.10.11' "
  s.requirements << "jar 'log4j:log4j', '1.2.17'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-opsworks', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:dynamodb-streams-kinesis-adapter', '1.0.0'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-sqs', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-emr', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-cloudformation', '1.10.11'"
  s.requirements << "jar 'com.beust:jcommander', '1.48'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-redshift', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-iam', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-codedeploy', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-dynamodb', '1.10.10'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-directconnect', '1.10.11'"
  s.requirements << "jar 'org.apache.httpcomponents:httpclient', '4.3.6'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-sns', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-directory', '1.10.11'"
  s.requirements << "jar 'com.google.protobuf:protobuf-java', '2.6.1'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-cloudfront', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-kinesis', '1.10.8'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-workspaces', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-swf-libraries', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-cloudhsm', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-simpledb', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-codepipeline', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-s3', '1.10.10'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-cognitoidentity', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-machinelearning', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-logs', '1.10.11'"
  s.requirements << "jar 'org.apache.commons:commons-lang3', '3.3.2'"
  s.requirements << "jar 'commons-codec:commons-codec', '1.6'"
  s.requirements << "jar 'com.fasterxml.jackson.core:jackson-annotations', '2.5.0'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-sts', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-route53', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-elasticloadbalancing', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-storagegateway', '1.10.11'"
  s.requirements << "jar 'org.apache.httpcomponents:httpcore', '4.3.3'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-efs', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-ec2', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-ssm', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-core', '1.10.10'"
  s.requirements << "jar 'com.amazonaws:dynamodb-import-export-tool', '1.0.0'"
  s.requirements << "jar 'commons-lang:commons-lang', '2.6'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-config', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-cloudtrail', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-elastictranscoder', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-codecommit', '1.10.11'"
  s.requirements << "jar 'joda-time:joda-time', '2.5'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-importexport', '1.10.11'"
  s.requirements << "jar 'com.fasterxml.jackson.core:jackson-databind', '2.5.3'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-cloudsearch', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:amazon-kinesis-client', '1.6.0'"
  s.requirements << "jar 'com.google.guava:guava', '15.0'"
  s.requirements << "jar 'com.fasterxml.jackson.core:jackson-core', '2.5.3'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-rds', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-cognitosync', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-datapipeline', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-support', '1.10.11'"
  s.requirements << "jar 'commons-logging:commons-logging', '1.1.3'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-cloudwatchmetrics', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-glacier', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-elasticache', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-simpleworkflow', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-lambda', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-autoscaling', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-ecs', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-devicefarm', '1.10.11'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-kms', '1.10.10'"
  s.requirements << "jar 'com.amazonaws:aws-java-sdk-cloudwatch', '1.10.8'"
  s.add_runtime_dependency 'jar-dependencies'
  # Development dependencies
  s.add_development_dependency "logstash-devutils"
  s.add_development_dependency "mocha"
end

--- TEMPLATE END ----------------------------------------------------------------

RTG8055 commented 6 years ago

installed it using : sudo jruby -S gem install ruby-maven -v '3.3.11' --source 'https://rubygems.org/'