buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Assaf Arkin <ar...@intalio.com>
Subject Re: How to 'fix' bad pom when using transitive()
Date Mon, 02 Mar 2009 08:54:49 GMT
On Mon, Mar 2, 2009 at 12:02 AM, Martin Grotzke <
martin.grotzke@javakaffee.de> wrote:

> Hi Daniel,
>
> When I try
>
> artifact 'javax.ejb:ejb:pom:3.0' do |f|
>   touch f


touch f.name

Assaf


>
> end
>
> (as buildr tries to download the pom first)
>
> I get this error:
>
> [Failed] Your build failed with an error:
> /home/grotzke/proj/freiheit/mywebapp:
> undefined method `to_str' for #<Buildr::Artifact:0xb79c31c0>
> buildr aborted!
> undefined method `to_str' for #<Buildr::Artifact:0xb79c31c0>
> /usr/lib/ruby/1.8/fileutils.rb:1388:in `fu_list'
> /usr/lib/ruby/1.8/fileutils.rb:1388:in `map'
> /usr/lib/ruby/1.8/fileutils.rb:1388:in `fu_list'
> /usr/lib/ruby/1.8/fileutils.rb:1019:in `touch'
> ./dependencies.rb:25
> /home/grotzke/.gem/ruby/1.8/gems/rake-0.8.1/lib/rake.rb:544:in `call'
> /home/grotzke/.gem/ruby/1.8/gems/rake-0.8.1/lib/rake.rb:544:in `execute'
> /home/grotzke/.gem/ruby/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /home/grotzke/.gem/ruby/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /usr/lib/ruby/gems/1.8/gems/buildr-1.3.3/lib/buildr/core/application.rb:482:in
> `invoke_with_call_chain'
> /usr/lib/ruby/gems/1.8/gems/buildr-1.3.3/lib/buildr/core/application.rb:468:in
> `synchronize'
>
> Do I have to create the pom.xml with the appropriate content, or what does
> that mean?
>
> Thanx && cheers,
> Martin
>
>
> On Sun, 2009-03-01 at 17:37 -0600, Daniel Spiewak wrote:
> > You could define the artifact task for that particular signature to
> > just create a dummy JAR file.  I forget the syntax, but I think it is
> > something like this:
> >
> > artifact 'javax.ejb:ejb:jar:3.0' do |f|
> >    touch f
> > end
> >
> > Daniel
> >
> > On Mar 1, 2009, at 5:32 PM, Martin Grotzke
> > <martin.grotzke@javakaffee.de> wrote:
> >
> > > Hi,
> > >
> > > I just want to depend on spring-2.5.6 using transitive().
> > >
> > > Unfortunately, spring declares a dependency on 'javax.ejb:ejb:jar:
> > > 3.0',
> > > which seems to be not available in public maven repos.
> > >
> > > I already tried to do s.th. like this:
> > >
> > >  transitive(SPRING).reject { |a| a.group == 'javax.ejb' }
> > >
> > > but unfortunately buildr tries to get the javax.ejb:ejb pom, so that
> > > my
> > > build fails with
> > >
> > >  buildr aborted!
> > >  Failed to download javax.ejb:ejb:pom:3.0
> > >
> > > Is there a way to fix this issue, e.g. with 'fixing' the pom when it's
> > > loaded via transitive?
> > >
> > > Thanx && cheers,
> > > Martin
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message