buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Donald (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BUILDR-699) custom_pom - NameError : undefined local variable or method `classifier' for #<Buildr::ZipTask>
Date Tue, 24 Jun 2014 07:32:27 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Peter Donald updated BUILDR-699:
--------------------------------

    Affects Version/s:     (was: 1.4.15)
                       1.4.17

> custom_pom - NameError : undefined local variable or method `classifier' for #<Buildr::ZipTask>
> -----------------------------------------------------------------------------------------------
>
>                 Key: BUILDR-699
>                 URL: https://issues.apache.org/jira/browse/BUILDR-699
>             Project: Buildr
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.4.17
>            Reporter: Trejkaz
>
> (Occurs in 1.4.17 but 1.4.17 is not available as an Affects Version.)
> If a project both uses custom_pom and has a package(:zip), custom_pom appears to be trying
to get the classifier off *all packages* instead of just artifacts which would be published.
Only jars have this, so when you hit a zip, you get this error:
> {noformat}
> NameError : undefined local variable or method `classifier' for #<Buildr::ZipTask:0x007fd7bb875948>
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/addon/buildr/custom_pom.rb:261:in
`pom'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/addon/buildr/gpg.rb:68:in
`block in sign_and_upload_all_packages'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/addon/buildr/gpg.rb:68:in
`map'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/addon/buildr/gpg.rb:68:in
`sign_and_upload_all_packages'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/addon/buildr/gpg.rb:76:in
`block in <module:ProjectExtension>'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/project.rb:649:in
`call'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/project.rb:649:in
`block in call_callbacks'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/project.rb:649:in
`each'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/project.rb:649:in
`call_callbacks'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/project.rb:214:in
`block (3 levels) in define'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/rake-0.9.2.2/lib/rake/task.rb:203:in
`call'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/rake-0.9.2.2/lib/rake/task.rb:203:in
`block in execute'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
`each'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in
`execute'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/project.rb:633:in
`block in execute'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/application.rb:139:in
`switch_to_namespace'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/project.rb:632:in
`execute'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/application.rb:662:in
`block in invoke_with_call_chain'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/application.rb:648:in
`invoke_with_call_chain'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/application.rb:643:in
`invoke'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/util.rb:177:in
`block in to_proc'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/project.rb:278:in
`each'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/project.rb:278:in
`projects'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/project.rb:968:in
`projects'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/application.rb:426:in
`raw_load_buildfile'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/application.rb:225:in
`block in load_buildfile'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/application.rb:535:in
`standard_exception_handling'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/application.rb:220:in
`load_buildfile'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/application.rb:130:in
`block in run'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/application.rb:535:in
`standard_exception_handling'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/lib/buildr/core/application.rb:128:in
`run'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/buildr-1.4.17/bin/buildr:20:in
`<top (required)>'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/bin/buildr:23:in `load'
> /Users/trejkaz/.rbenv/versions/2.0.0-p451/bin/buildr:23:in `<main>'
> {noformat}
> Commenting out package(:zip) make the release target work and commenting out custom_pom
stuff makes the package target work. It would be nice if I could get both to work in the same
buildfile. :)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message