You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Niklaus Giger <ni...@member.fsf.org> on 2010/04/24 03:03:08 UTC

Problems building eclipse application elexis

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

Re: Problems building eclipse application elexis

Posted by Antoine Toulme <an...@lunar-ocean.com>.
Well I tend to rely on the OSGi env variable.

remember to use OSGi only to do resolution.

buildr osgi:resolve:dependencies OSGi=/home/src/galileo2/eclipse

You will need to upload the mapped dependencies.

Thanks,

Antoine

On Sun, Apr 25, 2010 at 01:47, Niklaus Giger
<ni...@member.fsf.org>wrote:

> Hi Antoine
> Am Samstag 24 April 2010 16:37:01 schrieb Antoine Toulme:
> > You can use the doc from HEAD:
> > http://intalio.github.com/buildr4osgi/
> Thanks a lot for the link.
>
> I however still have problems. I am using buildr 1.3.5 (should I upgrade to
> 1.4.0rc2 ?)
>
> The following buildfile
> <-->
> res = require "buildr4osgi"
> puts repositories.remote.inspect
> puts "Has osgi "+ defined?(osgi).to_s
> repositories.remote << "http://repo1.maven.org/maven2"
> <-->
> with the following settings.yaml
> <--->
>  local: /opt/4hudson/maven
>  remote:
>   - https://intra.net/maven2
> im:
> server: ngiger.dyndns.org
> usr: niklaus.giger@member.fsf.org
> pwd: secret
>
> osgi:
>  containers:
>    - /home/src/galileo2/eclipse
> <-->
> produces
>
> >buildr -v clean compile
> >(in /home/src/elexis.analytica, development)
> >["https://intra.net/maven2"]
> >Has osgi
> >^Cniklaus@ng:/home/src/elexis.analytica$ buildr -v clean compile
> >(in /home/src/elexis.analytica, development)
> >["https://intra.net/maven2"]
> >Has osgi
> Is there still something wrong with my setup?
> If I add
>        eclipseOsgi = OSGi::Container.new('/home/src/galileo2/eclipse')
> to the buildfile. It really reas the configuration in.
>
> May I suggest that you change in
> http://intalio.github.com/buildr4osgi/configuration.html
> the line
> - /my.osgi
> by
> - /path/to/my/eclipse/installation
> It would be clearer for newbies like me.
>
> I also checkout a bpmn. I think it is a very good idea to announce (free
> SW)
> project which use the package. E.g. it would be a good idea also to put
> onto
> the buildr homepage a few links to projects using buildr and/or
> buildr4osgi.
> You might also speak about "design wins" with managers.
>
> But building bpmn also had the same problem with missing osgi.containers.
> Wouldn't it be nice to add some kind of "bootstrap" task which populates
> (may
> be a local settings.yaml overriding the one in ~/.buildr) everything from
> known sources somewhere in the internet and producing a suitable
> settings.yaml? Or at least add a copy of the settings.yaml you used?
>
> Best regards and again many thanks for your help.
>
> Niklaus
> >
> > Thanks!
> >
> > Antoine
> >
>
> --
> Niklaus Giger
>

Re: Problems building eclipse application elexis

Posted by Niklaus Giger <ni...@member.fsf.org>.
Hi Antoine
Am Samstag 24 April 2010 16:37:01 schrieb Antoine Toulme:
> You can use the doc from HEAD:
> http://intalio.github.com/buildr4osgi/
Thanks a lot for the link.

I however still have problems. I am using buildr 1.3.5 (should I upgrade to 
1.4.0rc2 ?)

The following buildfile 
<-->
res = require "buildr4osgi"
puts repositories.remote.inspect
puts "Has osgi "+ defined?(osgi).to_s
repositories.remote << "http://repo1.maven.org/maven2"
<-->
with the following settings.yaml
<--->
  local: /opt/4hudson/maven
  remote:
   - https://intra.net/maven2
im:
server: ngiger.dyndns.org
usr: niklaus.giger@member.fsf.org
pwd: secret

osgi:
  containers:
    - /home/src/galileo2/eclipse
<-->
produces

>buildr -v clean compile
>(in /home/src/elexis.analytica, development)
>["https://intra.net/maven2"]
>Has osgi
>^Cniklaus@ng:/home/src/elexis.analytica$ buildr -v clean compile
>(in /home/src/elexis.analytica, development)
>["https://intra.net/maven2"]
>Has osgi
Is there still something wrong with my setup?
If I add
	eclipseOsgi = OSGi::Container.new('/home/src/galileo2/eclipse')
to the buildfile. It really reas the configuration in.

May I suggest that you change in 
http://intalio.github.com/buildr4osgi/configuration.html
the line 
- /my.osgi
by
- /path/to/my/eclipse/installation
It would be clearer for newbies like me. 

I also checkout a bpmn. I think it is a very good idea to announce (free SW) 
project which use the package. E.g. it would be a good idea also to put onto 
the buildr homepage a few links to projects using buildr and/or buildr4osgi. 
You might also speak about "design wins" with managers.

But building bpmn also had the same problem with missing osgi.containers. 
Wouldn't it be nice to add some kind of "bootstrap" task which populates (may 
be a local settings.yaml overriding the one in ~/.buildr) everything from 
known sources somewhere in the internet and producing a suitable 
settings.yaml? Or at least add a copy of the settings.yaml you used?

Best regards and again many thanks for your help.

Niklaus
> 
> Thanks!
> 
> Antoine
> 

-- 
Niklaus Giger

Re: Problems building eclipse application elexis

Posted by Antoine Toulme <an...@lunar-ocean.com>.
You can use the doc from HEAD:
http://intalio.github.com/buildr4osgi/

Thanks!

Antoine

On Sat, Apr 24, 2010 at 04:09, Niklaus Giger
<ni...@member.fsf.org>wrote:

> Am Samstag 24 April 2010 03:08:48 schrieb Antoine Toulme:
> > 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 for your prompt answer. I installed buildr4osgi using
> sudo jruby -S gem install buildr4osgi
> I am working with the rdoc documentation as the links from the
> oss.intalio.com/buildr4osgi (e.g. http://oss.intalio.com/install.html)
> don't
> work (at least for me).  Seems to me to be the right approach.
>
> Best regards
>
> Niklaus
> >
> > Thanks,
> >
> > Antoine
> >
> > On Fri, Apr 23, 2010 at 18:03, Niklaus Giger
> >
> > <ni...@member.fsf.org>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/appli
> > >ca
> > >
> > > >tion.rb:400:in `raw_load_buildfile'
> > >
> > >
> /home/niklaus/.gem/jruby/1.8/gems/buildr-1.3.5-java/lib/buildr/core/appli
> > >ca
> > >
> > > >tion.rb:218:in `load_buildfile'
> > >
> > >
> /home/niklaus/.gem/jruby/1.8/gems/buildr-1.3.5-java/lib/buildr/core/appli
> > >ca
> > >
> > > >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.ecli
> > >pse.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
> >
>
> --
> Niklaus Giger
>

Re: Problems building eclipse application elexis

Posted by Niklaus Giger <ni...@member.fsf.org>.
Am Samstag 24 April 2010 03:08:48 schrieb Antoine Toulme:
> 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 for your prompt answer. I installed buildr4osgi using 
sudo jruby -S gem install buildr4osgi
I am working with the rdoc documentation as the links from the 
oss.intalio.com/buildr4osgi (e.g. http://oss.intalio.com/install.html) don't 
work (at least for me).  Seems to me to be the right approach.

Best regards

Niklaus
> 
> Thanks,
> 
> Antoine
> 
> On Fri, Apr 23, 2010 at 18:03, Niklaus Giger
> 
> <ni...@member.fsf.org>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/appli
> >ca
> >
> > >tion.rb:400:in `raw_load_buildfile'
> >
> > /home/niklaus/.gem/jruby/1.8/gems/buildr-1.3.5-java/lib/buildr/core/appli
> >ca
> >
> > >tion.rb:218:in `load_buildfile'
> >
> > /home/niklaus/.gem/jruby/1.8/gems/buildr-1.3.5-java/lib/buildr/core/appli
> >ca
> >
> > >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.ecli
> >pse.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
> 

-- 
Niklaus Giger

Re: Problems building eclipse application elexis

Posted by Antoine Toulme <an...@lunar-ocean.com>.
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
<ni...@member.fsf.org>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
>