Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • J jruby-maven-plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The TorqueBox Project
  • jruby-maven-plugins
  • Issues
  • #60
Closed
Open
Issue created Aug 18, 2014 by Administrator@rootContributor

Gem dependencies with '~> 0' result in '[0,0]'

Created by: jkutner

When adding a pom.xml dependency on a rubygem that has a dependency of ~> 0 on another gem, Maven fails with an error like:

[ERROR] Failed to execute goal on project heroku-buildpack-java: Could not resolve dependencies for project com.heroku:heroku-buildpack-java:pom:1.0-SNAPSHOT: Failed to collect dependencies at rubygems:heroku_hatchet:gem:1.3.4 -> rubygems:heroku-api:gem:[0,0]: No versions available for rubygems:heroku-api:gem:[0,0] within specified range -> [Help 1]

I've also found that this is a problem when using a pom goal on a gemspec to generate a pom.xml. The resulting pom file will have a [0,0] dependency.

I've created two projects under gem-maven-plugin/src/it to reproduce these, but I can't seem to figure out how to fix them. I've looked a spec2pom.rb but didn't have any luck. Can you point me in the right direction?

Assignee
Assign to
Time tracking