buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Spiewak <djspie...@gmail.com>
Subject Re: How to 'fix' bad pom when using transitive()
Date Sun, 01 Mar 2009 23:37:22 GMT
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
View raw message