Buildr does not support ranges. And maven is not very good at it either,
from my personal experience.

And to top if off, OSGi ranges don't coincide with maven ranges. So you
might want to stay away from those.

For OSGi, look at Buildr4OSGi, a Buildr plugin to do the job of resolving
your dependencies.

Thanks,

Antoine

On Fri, Apr 23, 2010 at 18:03, Niklaus Giger
<[email protected]>wrote:

> Hi
>
> I am running a hudson CI at http://ngiger.dyndns.org/hudson/ for the
> elexis
> application, a eclipse RCP for medical practitioners.
>
> I looked at various build systems for headless builds in order to add unit
> tests, etc to the CI and found buildr a very promising offer. Using ruby
> for a
> lot of my scripts and testing tools, I felt at ease with it.
>
> libffi-ruby
>
> I started like this (on my GNU/Debian-Linux squeeze system), Installed
> buildr
> for jruby.
>
> cd /opt/4hudson
> tar -zxf eclipse-rcp-galileo-SR2-linux-gtk.tar.gz
> cd /opt/4hudson/eclipse
> # Next two zip probably not yet needed.
> unzip archie-1.0.2.zip
> unzip ag.ion.noa-2.2.1.zip
>
> mvn eclipse:make-artifacts -DeclipseDir=/opt/4hudson/eclipse
> cd /opt/4hudson
> svn co https://elexis.svn.sourceforge.net/svnroot/elexis/trunk elexis
> cd elexis
>
> (Created the attached buildfile)
> buildr -v clean compile
>
> Now I get the following error:
>
> > (in /nfs4/hudson-service/4hudson/elexis, development)
> > []
> > Downloading org.eclipse.core:org.eclipse.core.runtime:pom:[3.1.0,4.0.0)
> > bad URI(is not URI?):
> > org/eclipse/core/org.eclipse.core.runtime/[3.1.0,4.0.0)/
> org.eclipse.core.ru
> >ntime-[3.1.0,4.0.0).pom Buildr aborted!
> > Failed to download
> > org.eclipse.core:org.eclipse.core.runtime:pom:[3.1.0,4.0.0), tried the
> > following repositories: http://www.ibiblio.org/maven2//
> > /nfs4/hudson-service/4hudson/elexis/buildfile:27
> >
> /home/niklaus/.gem/jruby/1.8/gems/buildr-1.3.5-java/lib/buildr/core/applica
> >tion.rb:400:in `raw_load_buildfile'
> >
> /home/niklaus/.gem/jruby/1.8/gems/buildr-1.3.5-java/lib/buildr/core/applica
> >tion.rb:218:in `load_buildfile'
> >
> /home/niklaus/.gem/jruby/1.8/gems/buildr-1.3.5-java/lib/buildr/core/applica
> >tion.rb:213:in `load_buildfile' (See full trace by running task with
> > --trace)
> I have in my local maven repository
>
>
>  
> ~/.m2/repository/org/eclipse/core/org.eclipse.core.runtime/3.5.0/org.eclipse.core.runtime-3.5.0.pom
>
> How do I make buildr make recognize this? Or did maven produce a wrong
> specification? Or am I following a completely track?
>
> Best regards
>
>
> --
> Niklaus Giger
>

Reply via email to