{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/2937","labels_url":"https://api.github.com/repos/elastic/logstash/issues/2937/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/2937/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/2937/events","html_url":"https://github.com/elastic/logstash/issues/2937","id":65874706,"number":2937,"title":"Issues with different version name schemas between rubygems and maven.","user":{"login":"purbon","id":68540,"avatar_url":"https://avatars.githubusercontent.com/u/68540?v=3","gravatar_id":"","url":"https://api.github.com/users/purbon","html_url":"https://github.com/purbon","followers_url":"https://api.github.com/users/purbon/followers","following_url":"https://api.github.com/users/purbon/following{/other_user}","gists_url":"https://api.github.com/users/purbon/gists{/gist_id}","starred_url":"https://api.github.com/users/purbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purbon/subscriptions","organizations_url":"https://api.github.com/users/purbon/orgs","repos_url":"https://api.github.com/users/purbon/repos","events_url":"https://api.github.com/users/purbon/events{/privacy}","received_events_url":"https://api.github.com/users/purbon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/logstash/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-02T08:12:38Z","updated_at":"2015-04-07T11:39:05Z","closed_at":null,"body":"Moved from the logstash-input-log4j repo to here as is where it belongs:\r\n\r\n--\r\nI got on step further, having a successfull bundle install by using specific logstash-core gem version in the gemspec \r\n````\r\ns.add_runtime_dependency \"logstash-core\", '1.5.0.rc2'\r\n````\r\nI strongly suspect that ruby-maven is having a hard time because logstash-core gem versioning does not follow [maven convention for qualifier](http://docs.oracle.com/middleware/1212/core/MAVEN/maven_version.htm#MAVEN401)\r\nSo for him, none of the [available version in rubygem ](https://rubygems.org/gems/logstash-core) are following the rule [1.4.0,2.0.0), thus failing\r\n\r\nThis should be fixed with 1.5.0 release hopefully or if you do an rc3, please try naming it with a **dash** 1.5.0-rc3 as \r\n  > All versions with a qualifier are older than the same version without a qualifier (release version).\r\n---\r\n\r\nThanks @wiibaa for bringing this.\r\n\r\nMore details in the old issue (https://github.com/logstash-plugins/logstash-input-log4j/issues/5).\r\n\r\nIt relates to https://github.com/elastic/logstash/pull/2932"},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/90517330","html_url":"https://github.com/elastic/logstash/issues/2937#issuecomment-90517330","issue_url":"https://api.github.com/repos/elastic/logstash/issues/2937","id":90517330,"user":{"login":"colinsurprenant","id":2010,"avatar_url":"https://avatars.githubusercontent.com/u/2010?v=3","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T11:39:05Z","updated_at":"2015-04-07T11:39:05Z","body":"I don't understand the relation with a gemspec `.add_runtime_dependency` on a gem and ruby-maven, what am I missing?\r\n\r\nI think the problem is simply that that using a dependency like\r\n```ruby\r\ns.add_runtime_dependency \"logstash-core\", '>= 1.4.0', '< 2.0.0'\r\n```\r\nwill just try to fetch the latest **released** gem that match this version constrain but `1.5.0.rc2` is a **pre-released** version. Just like when using Rubygems you have to use  `gem install --pre ...` to force installing a pre-released version."}}