Posted by cnruby Fri, 14 Sep 2007 19:56:00 GMT

技术信息:构建工具buildr可能出现的错误信息

  • 构建文件Rakefile或者buildfile里面没有定义变量repositories及其值
    具体错误信息实例
    E:\work_jruby\buildr-jruby>rake -f Rakefile
    (in E:/work_jruby/buildr-jruby)
    "E:/work_jruby/buildr-jruby"
    Downloading org.apache.ant:ant:jar:1.7.0
    rake aborted!
    No remote repositories defined!
    E:/work_jruby/buildr-jruby/rakefile:14
    (See full trace by running task with --trace)
  • 构建文件Rakefile或者buildfile里面没有在开始时使用方法require 'buildr'
    具体错误信息实例 
    E:\work_jruby\buildr-jruby>rake -T
    (in E:/work_jruby/buildr-jruby)
    rake aborted!
    undefined local variable or method `repositories' for main:Object
    E:/work_jruby/buildr-jruby/rakefile:11
    (See full trace by running task with --trace)

Posted in  | Tags , , , ,