Buildr
  1. Buildr
  2. BUILDR-623

build from POM results in InvalidURIError

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.4.6
    • Fix Version/s: 1.5
    • Component/s: Dependency management
    • Labels:
      None
    • Environment:

      Description

      I've got a POM with simple repository definition and dependency ref.
      Whenever I try to run Buildr against this POM Buildr tries to parse String that includes square bracket and single quote into URI.
      I'm getting this:

      $ buildr -v compile
      /usr/local/lib64/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
      /usr/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
      To use Buildr you need a buildfile. Do you want me to create one?:
      1. From Maven2 POM file
      2. From directory structure
      3. Cancel
      ? 1
      Downloading org.jboss.aop:jboss-aop:pom:2.1.8.GA
      Buildr aborted!
      URI::InvalidURIError : bad URI(is not URI?): ["https://repository.jboss.org/nexus/content/groups/public-jboss/"]

      1. pom.xml
        1 kB
        Oleg Mikheev

        Activity

        Peter Donald made changes -
        Fix Version/s 1.5 [ 12315358 ]
        Hide
        Chadwick Boggs added a comment - - edited

        I experience this issue on a different OS:

        $ uname -a
        Darwin cboggsmac.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64

        $ ruby --version
        ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]

        $ buildr --version
        /Users/chad/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
        /Users/chad/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
        Buildr 1.4.6

        Show
        Chadwick Boggs added a comment - - edited I experience this issue on a different OS: $ uname -a Darwin cboggsmac.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64 $ ruby --version ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0] $ buildr --version /Users/chad/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config. /Users/chad/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. Buildr 1.4.6
        Oleg Mikheev made changes -
        Description I've got a POM with simple repository definition and dependency ref.
        Whenever I'm trying to tun Buildr against this POM I'm getting this:

        $ buildr -v compile
        /usr/local/lib64/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
        /usr/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
        To use Buildr you need a buildfile. Do you want me to create one?:
        1. From Maven2 POM file
        2. From directory structure
        3. Cancel
        ? 1
        Downloading org.jboss.aop:jboss-aop:pom:2.1.8.GA
        Buildr aborted!
        URI::InvalidURIError : bad URI(is not URI?): ["https://repository.jboss.org/nexus/content/groups/public-jboss/"]
        I've got a POM with simple repository definition and dependency ref.
        Whenever I try to run Buildr against this POM Buildr tries to parse String that includes square bracket and single quote into URI.
        I'm getting this:

        $ buildr -v compile
        /usr/local/lib64/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
        /usr/lib64/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
        To use Buildr you need a buildfile. Do you want me to create one?:
        1. From Maven2 POM file
        2. From directory structure
        3. Cancel
        ? 1
        Downloading org.jboss.aop:jboss-aop:pom:2.1.8.GA
        Buildr aborted!
        URI::InvalidURIError : bad URI(is not URI?): ["https://repository.jboss.org/nexus/content/groups/public-jboss/"]
        Oleg Mikheev made changes -
        Field Original Value New Value
        Attachment pom.xml [ 12511854 ]
        Hide
        Oleg Mikheev added a comment -

        POM that runs fine in Maven and produces errors in Buildr.

        Show
        Oleg Mikheev added a comment - POM that runs fine in Maven and produces errors in Buildr.
        Oleg Mikheev created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Oleg Mikheev
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development