Problems installing dependencies into local ~/.m2 Maven repository

16 views
Skip to first unread message

Niklaus Giger

unread,
Jun 24, 2010, 5:00:41 PM6/24/10
to build...@googlegroups.com
Hi

I am trying to migrate a quite large Eclipse RCP application to buildr
(the code lives at http://elexis.hg.sourceforge.net/hgweb/elexis/elexis-base).

First I ran into a problem that I could not run osgi:install:dependencies,
because a rm in ~/.m2 failed. Applying the following patch fixed this problem:
--- a/lib/buildr4osgi/osgi/project_extension.rb
+++ b/lib/buildr4osgi/osgi/project_extension.rb
@@ -185,7 +185,7 @@ module OSGi
if local
artifact = Buildr::artifact(bundle.to_s)
installed = Buildr.repositories.locate(artifact)
- rm_r installed
+ rm_rf installed
mkpath File.dirname(installed)
Buildr::artifact(bundle.to_s).from(bundle.file).install
info "Installed #{installed}"
diff --git a/spec/osgi/packaging_spec.rb b/spec/osgi/packaging_spec.rb
index fd90391..2670737 100644


Then I was unable to run "rake spec" (or only ruby or jruby) as I got the
following error:

rake spec:ruby
(in /home/src/buildr4osgi)
Running test suite using Ruby ...
ruby -S rake spec
(in /home/src/buildr4osgi)
Compiling Java libraries ...
ruby1.8 /home/src/buildr4osgi/_buildr --buildfile buildr.buildfile compile
ruby1.8: No such file or directory -- /home/src/buildr4osgi/_buildr (LoadError)
rake aborted!
Command failed with status (1): [ruby1.8 /home/src/buildr4osgi/_buildr --
bu...]

(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [ruby -S rake spec...]

(See full trace by running task with --trace)

Best regards

--
Niklaus Giger

Antoine Toulme

unread,
Jun 24, 2010, 5:04:41 PM6/24/10
to build...@googlegroups.com
Hi Niklaus,

yes, rake spec doesn't work at this time as Buildr changed its rakelib quite a bit. I didn't have time to fix that.

rm_rf seems to make sense to me. I can integrate that change if you want.

Thanks,

Antoine

Niklaus Giger

unread,
Jun 24, 2010, 5:32:12 PM6/24/10
to build...@googlegroups.com, Antoine Toulme
Am Donnerstag 24 Juni 2010, 23:04:41 schrieb Antoine Toulme:
> Hi Niklaus,
>
> yes, rake spec doesn't work at this time as Buildr changed its rakelib
> quite a bit. I didn't have time to fix that.
>
> rm_rf seems to make sense to me. I can integrate that change if you want.
Please to it for a next release. At the moment I just patched it by hand at
the right place, this will be okay for me for some time to come.

Thanks for your quick replay.

Best regards

Niklaus


--
Niklaus Giger
Wieshoschet 6
CH-8753 Mollis
+41 (0)55 612 20 54 P
+41 (0)55 618 64 68 G

Antoine Toulme

unread,
Jun 24, 2010, 5:36:52 PM6/24/10
to build...@googlegroups.com
OK, please open a bug for it on jira.intalio.org, with a patch ?

2010/6/24 Niklaus Giger <niklau...@member.fsf.org>

Niklaus Giger

unread,
Jun 25, 2010, 1:21:40 AM6/25/10
to build...@googlegroups.com, Antoine Toulme
Am Donnerstag 24 Juni 2010, 23:36:52 schrieb Antoine Toulme:
> OK, please open a bug for it on jira.intalio.org, with a patch ?

The link on the Web-page http://oss.intalio.com/buildr4osgi/ points to
http://jira.intalio.org/jira/secure/BrowseProject.jspa?id=10020
which does not work for me.

Can you give me the correct link? Then I will report both bugs (with patches).

Thanks in advance.

Niklaus

Antoine Toulme

unread,
Jun 25, 2010, 1:51:47 AM6/25/10
to build...@googlegroups.com
My mistake, we moved it to forge.intalio.org.
Reply all
Reply to author
Forward
0 new messages